提交时间:2024-08-19 13:53:08
运行 ID: 166353
#include<bits/stdc++.h> using namespace std; int n,t,j,s; bool f; int main() { cin>>n; for(int i=1;i<=n;i++) { cin>>t; j=0; s=0; f=false; if(t==1) goto sk; while(s<t) { j++; s=pow(2,j); if(s==t) { sk:cout<<"Yes"<<endl; f=true; } } if(!f)cout<<"No"<<endl; } }