Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141083 蔡胤泽 桃子问题 C++ Accepted 0 MS 268 KB 232 2025-12-21 11:24:19

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int peach(int d){ if(d== 10) { return 1; } else { int m = peach(d + 1) * 2 + 2; return m; } } int main(){ int a = peach(1); cout << a; return 0; }