Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67662 李琥博 桃子问题 C++ Accepted 1 MS 260 KB 180 2024-03-17 11:57:11

Tests(1/1):


Code:

#include<iostream> using namespace std; int a(int x){ if(x==10){ return 1; }else{ return (a(x+1)+1)*2; } } int main(){ int s=a(1); cout<<s; return 0; }