Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135013 陈华仁星 桃子问题 C++ Accepted 0 MS 260 KB 219 2025-11-02 10:43:28

Tests(1/1):


Code:

#include <iostream> using namespace std; int a=1; int top; void sum(int top) { if(top<=9) { top+=1; a=(1+a)*2; sum(top); } else { printf("%d",a); } } int main() { sum(a); return 0; }