Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<iostream>
- #include<string>
- using namespace std;
- int main()
- {
- unsigned n;
- //cout<<sizeof(unsigned);
- cin>>n;
- if(n & n-1)
- cout<<"NO";
- else cout<<"YES";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement