| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142526 | 汤子杨 | 12for循环练习I | C++ | Wrong Answer | 0 MS | 272 KB | 133 | 2026-01-11 11:00:31 |
#include<iostream> using namespace std; int main() { int n,z=0; cin>>n; for(int i=1;i<=n;i++) { z+=i; } cout<<z; }
------Input------
4
------Answer-----
1 2 3 4
------Your output-----
10