Vlad5080

Hanoyan tower

Jan 16th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.11 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.     int n;
  5.     cin >> n;
  6.     cout << pow(2, n) - 1;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment