提交时间:2023-10-04 10:10:57

运行 ID: 104845

#include<bits/stdc++.h> using namespace std; int main(){ int n = 10, sum = 1; cin >> n; for(int i = 2; i <= n; i++){ sum = (sum + 1)*2; } cout << sum; return 0; }