Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- ios_base::sync_with_stdio(0);
- cin.tie(0); cout.tie(0);
- int n,x;
- cin>>n>>x;
- x*=2;
- int mnm=ceil(log2(double(n)));
- cout<<((mnm<=x)?1:0)<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment