| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154492 | 蔡皓霆 | 12奇数和与偶数和 | C++ | Wrong Answer | 0 MS | 272 KB | 322 | 2026-05-30 14:26:18 |
#include <iostream> using namespace std; int main() { int n, m, es=0, os=0; cin >> n >> m ; for(int i=m;i<=m;i++) { if (i%2==0) { es+=i; } else { os +=i; } } cout <<es<< " " <<os<<endl; return 0; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
0 103