| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 74987 | sh25_shenpy | [在线测评解答教程] 求和 | C++ | Accepted | 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; }