Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1014 | 黄天泽 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 0 MS | 268 KB | 141 | 2023-06-17 15:28:50 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a*(a+1)/2<<endl; cout<<b*(b+1)/2; return 0; }
------Input------
887 778 916
------Answer-----
393828 303031 419986
------Your output-----
393828 303031