提交时间:2024-08-19 10:39:06
运行 ID: 166284
#include <bits/stdc++.h> using namespace std; int main() { int T,N; scanf("%d",&T); while(T--){ scanf("%d",&N); if((N>0) && !(N&(N-1))) cout<<"Yes"<<endl; else cout<<"No"<<endl; } return 0; }