Promi_38

cf 913A

Oct 22nd, 2021
580
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits\stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, m;
  8.     cin >> n >> m;
  9.    
  10.     if(n >= 27) cout << m << endl;
  11.     else cout << m % (1 << n) << endl;
  12. }
  13.  
RAW Paste Data