Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114044 | 刘玥 | 12奇数和与偶数和 | C++ | Wrong Answer | 1 MS | 268 KB | 215 | 2025-03-19 18:13:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,s=0,j=0; cin>>m>>n; for(int i=m;i<=n;i++){ if(i%2==0) s++; else j++; } cout<<s<<" "<<j; return 0; }
------Input------
5 103
------Answer-----
2646 2700
------Your output-----
49 50