提交时间:2023-10-04 10:07:13
运行 ID: 104837
#include <iostream> #include <cmath> using namespace std; int main() { int n; cin >> n; long long sum = 1; for(int i = 1;i <= n;i++) sum *= 2; cout << 2 * sum - 1; return 0; }