Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137243 彭士宝 桃子问题 C++ Accepted 0 MS 264 KB 217 2025-11-16 21:21:19

Tests(1/1):


Code:

#include <iostream> using namespace std; int f(int n) { if (n == 10) { return 1; } return (f(n + 1) + 1) * 2; } int main() { int res = f(1); cout << res << endl; return 0; }