| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142425 | 翁思宸 | 年龄问题 | C++ | Accepted | 0 MS | 260 KB | 287 | 2026-01-09 18:16:04 |
//1526 年龄问题(递归) #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int use(int n){ int s=0; if(n==1){ return 10; } return use(n-1)+2; } int main(){ int a=5; cout<<use(a); return 0; }