| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1885 | 王兮 | 编程求1+3+5+...+n | C++ | Accepted | 100 | 0 MS | 252 KB | 140 | 2019-10-26 21:00:37 |
#include<iostream> int main() { int a,b,c=0; scanf("%d",&a); for(b=1;b<=a;b=b+2) { c=c+b; } printf("%d",c); return 0; }