Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
752 曾浩森 桃子问题 C++ Accepted 0 MS 264 KB 207 2023-03-18 15:48:50

Tests(1/1):


Code:

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