| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135634 | hjx1 | [在线测评解答教程] 求和 | C++ | Accepted | 2 MS | 268 KB | 276 | 2025-11-08 09:40:18 |
#include <bits/stdc++.h> using namespace std; int main() { int i,j,n; while (scanf("%d",&n)!=EOF) { i=1; j=0; while (i<=n) { j=j+i; i++; } cout<<j<<endl; } return 0; }