#847. 2次幂
2次幂
Background
Special for beginners, ^_^
Description
给定一个正整数N,如果是2的幂次方输出yes,否则输出no 2的幂次方:如果存在一个整数x,使得=N,则认为N是2的幂次方
Input
一个正整数N(0<=N<=).
Output
如果是2的幂次方输出yes,否则输出no
Samples
1
yes
3
no
Limitation
1s, 1024KiB for each test case.
Special for beginners, ^_^
给定一个正整数N,如果是2的幂次方输出yes,否则输出no 2的幂次方:如果存在一个整数x,使得2x=N,则认为N是2的幂次方
一个正整数N(0<=N<=106).
如果是2的幂次方输出yes,否则输出no
1
yes
3
no
1s, 1024KiB for each test case.
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.