16 lines
198 B
C++
16 lines
198 B
C++
#include<bits/stdc++.h>
|
|
using namespace std;
|
|
|
|
bool judege(int n) {
|
|
//return n & (n - 1) == 0;
|
|
return (n & (n - 1) )== 0;
|
|
}
|
|
|
|
|
|
int main() {
|
|
cout<< judege(1024)<<endl;
|
|
return 0;
|
|
}
|
|
|
|
|