| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144570 | 汪明轩 | 12奇数和与偶数和 | C++ | Wrong Answer | 0 MS | 268 KB | 240 | 2026-01-24 10:58:12 |
#include<iostream> using namespace std; int main(){ int n,m,x,y; cin>>n>>m; for(int i=n;i<=m;i++){ if(i%2==0){ x+=i; } } for(int o=n;o<=m;o++){ if(o%2==0){ y+=o; } } cout<<x<<" "<<y; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
8034926 4197710