| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 83959 | sh25_guwz | [在线测评解答教程] 求和 | C++ | Accepted | 1 MS | 248 KB | 203 | 2026-02-04 20:40:58 |
#include<bits/stdc++.h> using namespace std; long add(int n){ if(n==1) return 1; return n+add(n-1); } int main() { int n; while(cin>>n) cout<<add(n)<<endl; return 0; }