cppOlimp/binarnie_cisla.cpp

19 lines
312 B
C++
Raw Normal View History

2022-02-07 22:33:05 +03:00
//acmp.ru 0692 binarnie_cisla.cpp 8%
#include <stdio.h>
#include <math.h>
int main(){
freopen("INPUT.TXT", "r", stdin);
freopen("OUTPUT.TXT", "w", stdout);
unsigned int N;
scanf("%i", &N);
for (int i = 0; i <= 32; i++){
if(log2(N) == i){
printf("YES");
return 0;
}
}
printf("NO");
return 0;
}