Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
333321 | 黄浙峰老师 | 【C6-5】猴子吃桃 | C++ | 解答错误 | 0 | 1 MS | 236 KB | 171 | 2025-07-16 14:43:43 |
#include<bits/stdc++.h> using namespace std; int f(int n){ if(n>=10){ return 1; }else{ return 2*(f(n+1)+1); } } int main(){ cout<<f(1); return 0; }