提交时间:2023-11-17 20:41:39

运行 ID: 110933

#include <bits/stdc++.h> using namespace std; const int MAXN = 11; int n, a[MAXN]; int main() { n = 10; a[10] = 1; for (int i=9; i>0; i--) { a[i] = (a[a+1]+1)*2; } cout << a[1]; return 0; }