| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158498 | 王艺博 | 13奇数和与偶数和 | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 209 | 2026-08-22 11:44:50 |
#include<bits/stdc++.h> using namespace std; int main () { int a,b,i=0; cin>>b; for(a=0;a<=b;a+=2){ i=i+a; } for(a=1;a<=b;a+2){ i=i+a; } cout<<i<<' '; cout<<i<<' '; return 0; }