| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154381 | 邵栋-栋栋老师 | 12奇数和与偶数和 | C++ | Accepted | 1 MS | 272 KB | 307 | 2026-05-30 13:39:51 |
#include<bits/stdc++.h> using namespace std; int main() { int m,n,es=0,os=0; cin>>m>>n; for(int i=m;i<=n;i++) { if(i%2==0) { es+=i; } else { os+=i; } } cout<<es<<" "<<os<<endl; return 0; }