提交时间:2024-06-01 16:47:16
运行 ID: 150246
#include <bits/stdc++.h> using namespace std; int main() { int x,n; cin >> x; for(int i = 1;i <= x;i++) { cin >> n; if((n&(n - 1)) == 0)cout << "Yes\n"; else cout << "NO\n"; } }