Lũy thừa của 2

View as PDF



Problem type
Allowed languages
Assembly, Awk, Brain****, C, C++, Java, Pascal, Perl, Python, SCRATCH, Sed, Text
Points: 5 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Cho số nguyên dương \(N\)

Yêu cầu

Kiểm tra một số xem có phải là lũy thừa của \(2\) hay không?

Input

Số nguyên \(N (N < 10^{12})\)

Output

In ra Yes nếu \(N\) là lũy thừa của \(2\), ngược lại in ra No

Sample
Input
4
Output
Yes

Comments

Most recent
Loading comments...

There are no comments at the moment.