Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93335 | 陈铎文 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 1 MS | 268 KB | 258 | 2024-10-13 12:08:59 |
# include<iostream> # include<cstring> # include<cmath> using namespace std; int main() { int a,b,maxa=0,maxb=0; cin>>a>>b; for(int i=1;i<=a;i++) maxa+=i; for(int i=1;i<=b;i++) maxb+=i; cout<<maxa<<endl<<maxb; }
------Input------
887 778 916
------Answer-----
393828 303031 419986
------Your output-----
393828 303031