| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75104 | sh25_ganzy | 求1+2+3+... | C++ | Accepted | 0 MS | 244 KB | 209 | 2025-12-05 15:18:11 |
#include<bits/stdc++.h> using namespace std; int s(int n){ if(n==1){ return 1; }else{ return s(n-1)+n; } } int main(){ int n; cin>>n; cout<<s(n); return 0; }