Lũy thừa của 2

View as PDF

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 < 1012)

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

There are no comments at the moment.