All submissions for this problem are available.
Manju has an integer N. Print “YES” if it is good integer ,otherwise print “NO”.
According to Manju, an integer is considered good if it’s a power of 2.
First line consist of number of test cases T.
Each test case consist of integer N.
For each test case print "YES" or "NO" without quotes.
Print every answer in new line.
- 1 ≤ T ≤ 105
- 1 ≤ N ≤ 109
Input: 3 12 8 100 Output: NO YES NO
1,2,4,8,16,.... are good integers.
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYP3|
Fetching successful submissions
If you are still having problems, see a sample solution here.