Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7736 黄宜洋 桃子问题 C++ Accepted 2 MS 256 KB 360 2025-05-17 15:00:24

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int a(int n){ if(n==10) return 1; return ((a(n+1)+1)*2); } int main(){ cout<<a(1)<<endl; return 0; }