Run ID:123001
提交时间:2025-06-22 13:13:22
#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++; s=s+i; i++; x=x+i; } cout<<s<<" "<<x; return 0; }