| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153574 | 张皓凯 | 12for循环练习I | C++ | Wrong Answer | 2 MS | 268 KB | 185 | 2026-05-23 10:03:49 |
#include<bits/stdc++.h> using namespace std; int main() { int n,a=0; cin>>n; for(int i=1;i<=n;++i) { a+=i; } cout<<a<<endl; return 0; }
------Input------
4
------Answer-----
1 2 3 4
------Your output-----
10