| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69419 | Eren7 | [在线测评解答教程] 求和 | C++ | Output Limit Exceeded | 8 MS | 268 KB | 221 | 2024-04-03 22:01:48 |
#include <iostream> using namespace std; int main (){ while(1){ int a ; cin >> a; if(a == EOF) break; int temp = 0; temp = (a*(a+1)/2); cout <<temp << endl; } return 0; }