Chapter 10187: Lucky Monkey [Deep Foundation]: Solution.

C2024010 2024-07-15 11:36:09 2024-07-16 16:19:37

#include <bits/stdc++.h>

using namespace std;

int main() {

int n,a;

cin>>n>>a;

for(int i=0;i<n;i++){

    a--;

	a=a*2;

}

cout<<a;

return 0;

}