Promi_38

cf 1475A (bitwise)

Oct 22nd, 2021
548
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 t;
  8.     cin >> t;
  9.    
  10.     while(t--)
  11.     {
  12.         long long n;
  13.         cin >> n;
  14.        
  15.         if(n == 2) printf("NO\n");
  16.         else if((n & (n - 1)) == 0) printf("NO\n");
  17.         else printf("YES\n");
  18.     }
  19. }
  20.  
RAW Paste Data