提交时间:2023-10-04 08:37:25
运行 ID: 104733
#include<bits/stdc++.h> using namespace std; int main(){ int n , sum = 1; cin >> n; for(int i = 1; i <= n; i++){ sum = sum * 2 + 1; } cout << sum; return 0; }