提交时间:2024-08-19 15:29:59

运行 ID: 166883

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int x; while(n--) { cin >> x; if((x & (x - 1)) == 0) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }