Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
1115 王冯俊 编程求1+3+5+...+n C++ Accepted 100 0 MS 260 KB 145 2019-10-02 11:27:32

Tests(4/4):


#include<iostream> int main(){ int a,b,c,max; a=0; scanf("%d",&b); while(1<=b){ a=a+b; b=b-2; } printf("%d",a); return 0; }


Judgement Protocol: