Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3240 邓小龙 桃子问题 C++ Accepted 0 MS 260 KB 157 2024-04-24 00:17:18

Tests(1/1):


Code:

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