Degree of two
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Check, if the given positive integer is a power of two.
Input
One positive integer n (n < 2^31
).
Output
Print "YES", if n is a power of two, and "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 2K
Acceptance rate 37%