Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123792 陈梓钒 12奇数和与偶数和 C++ Wrong Answer 1 MS 272 KB 250 2025-07-10 12:02:19

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m; int jsh = 0; int osh = 0; cin>>n>>m; for(int i=m;i<=n;i++){ if(i%2 != 0) jsh =jsh+i; else{ osh += i; } } cout<<osh<<" "<<jsh<<endl; return 0; }


Run Info:

------Input------
5 103
------Answer-----
2646 2700
------Your output-----
0 0