| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74231 | 文 | [在线测评解答教程] 求和 | C++ | Output Limit Exceeded | 6 MS | 272 KB | 199 | 2024-05-24 20:10:26 |
#include<iostream> using namespace std; /** * */ int main(){ int n; cin>>n; int sum; while(n!=EOF){ sum=0; sum=(1+n)*n/2; cout<<sum<<endl; cin>>n; } return 0; }