Run ID:952
提交时间:2023-06-10 14:32:13
#include <iostream> using namespace std; int main(){ int m,n,o,j; cin>>m>>n; o=j=0; for (m;m<=n;m++){ if (m%2==0){ o+=m; } else{ j+=m; } } cout<<o<<" "<<j<<endl; return 0; }