| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154270 | 张皓凯 | 12奇数和与偶数和 | C++ | Wrong Answer | 1 MS | 272 KB | 259 | 2026-05-30 09:19:03 |
#include<bits/stdc++.h> using namespace std; int main() { int m,n,c=0,d=0; cin>>m>>n; for(int x=m;x<=n;++x) { if(x%2!=0) c+=x; else d+=x; } cout<<c<<" "<<d<<endl; return 0; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
2700 2646