| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 87053 | sh25_zhoumy | 求1+2+3+... | C++ | Accepted | 0 MS | 252 KB | 227 | 2026-04-10 15:46:36 |
#include <iostream> using namespace std; int sum(int n) { if (n == 1) { return 1; } return n + sum(n - 1); } int main() { int n; cin >> n; cout << sum(n) << endl; return 0; }