| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74987 | sh25_shenpy | [在线测评解答教程] 求和 | C++ | 通过 | 1 MS | 244 KB | 185 | 2025-12-05 14:52:05 |
// #include<bits/stdc++.h> using namespace std; int n,t,ans; int main(){ while(cin>>n){ for(int i=1;i<=n;++i){ ans+=i; } cout<<ans<<endl; ans=0; } return 0; }