提交时间:2024-08-19 19:41:11

运行 ID: 167856

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