← All problemsSign in

Good Integer

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. Input First line consist of number of test cases T. Each test case consist of integer N. Output For each test case print "YES" or "NO" without quotes. Print every answer in new line. Constraints - 1 ≤ T ≤ 105 - 1 ≤ N ≤ 109 Example Input

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start