Advertisement
Promi_38

cf 1475A

Jan 25th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int t;
  6.     scanf("%d", &t);
  7.    
  8.     while(t--)
  9.     {
  10.         long long n;
  11.         scanf("%lld", &n);
  12.         while(n % 2 == 0)
  13.         {
  14.             n /= 2;
  15.         }
  16.         if(n > 1 && n != 2) printf("YES\n");
  17.         else printf("NO\n");
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement