Advertisement
Guest User

solution

a guest
Aug 28th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<iostream>
  3. #include<string>
  4.  
  5. using namespace std;
  6. int main()
  7. {
  8. unsigned n;
  9. //cout<<sizeof(unsigned);
  10.  
  11. cin>>n;
  12.  
  13. if(n & n-1)
  14. cout<<"NO";
  15. else cout<<"YES";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement