#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N <= 0) { cout << "no" << endl; return 0; } while (N % 2 == 0) { N /= 2; } if (N == 1) { cout << "yes" << endl; } else { cout << "no" << endl; } return 0; } //循环除以2
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.
Using your Hydro universal account