Advertisement
Saleh127

Untitled

Apr 6th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. int main()
  5. {
  6. ll a,b,c,d,e,f,i,j,k,l;
  7. cin>>a>>b;
  8. c=pow(2,a);
  9. d=b%c;
  10. if(a<30)
  11. cout<<d<<endl;
  12. else
  13. cout<<b<<endl;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement