| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155051 | 李一凡 | 12奇数和与偶数和 | C++ | Wrong Answer | 1 MS | 268 KB | 321 | 2026-05-31 12:48:07 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int a=0; int b=0; for(int i=m;i<=n;i++){ if(i%2==0){ a+= i; } else { b += i; } } cout<<a<<" "<<b<<endl; return 0; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
0 0