Run ID:122975
提交时间:2025-06-22 12:27:54
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; int i=a,s=0,x=0; for(;i<=b;){ i++; if(i%2==0){ s=s+i; } else{ x=x+i; } } cout<<x<<" "<<s; return 0; }