0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-26 06:32:00 +00:00
OI-codes/Luogu/P5743/P5743.cpp

18 lines
228 B
C++
Raw Normal View History

// R38781374
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, sum;
sum = 1;
cin >> n;
2021-11-19 09:01:13 +00:00
for (int i = n - 1; i > 0; i--) {
sum++;
sum *= 2;
}
cout << sum;
return 0;
}