mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 21:31:59 +00:00
18 lines
226 B
C++
18 lines
226 B
C++
|
// R38781374
|
||
|
|
||
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int main() {
|
||
|
int n, sum;
|
||
|
sum = 1;
|
||
|
cin >> n;
|
||
|
for (int i = n-1; i > 0; i--) {
|
||
|
sum++;
|
||
|
sum *= 2;
|
||
|
}
|
||
|
cout << sum;
|
||
|
return 0;
|
||
|
}
|