| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 119205 | 刘益梵 | 12奇数和与偶数和 | C++ | Wrong Answer | 0 MS | 268 KB | 221 | 2025-05-17 10:38:05 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,m,x,y; cin>>a>>m; for(a;a<=m;a++) { if(a%2!=0){ x=x+a; } if(a%2==0){ y=y+a; } } cout<<x<<" "; cout<<y; return 0; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
8034980 4197710