| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76585 | 田苒彤 | 13奇数和与偶数和 | C++ | Wrong Answer | 0 MS | 268 KB | 234 | 2024-06-02 15:25:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,cxs=0,jyl=0; cin>>n; for(int i=1;i<=n;i++){ if(i%2==0){ cxs=cxs+i; }else{ jyl=jyl+i; } } cout<<cxs<<" "<<jyl; return 0; }
------Input------
157
------Answer-----
6241 6162
------Your output-----
6162 6241