提交时间:2024-08-19 15:26:40

运行 ID: 166857

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