提交时间:2023-11-17 20:42:11

运行 ID: 110935

#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[i+1]+1)*2; } cout << a[1]; return 0; }