提交时间:2024-08-19 14:50:36

运行 ID: 166558

#include<bits/stdc++.h> using namespace std; vector<int>vec; int main(){ int T,n; cin>>T; while(T--){ cin>>n; bool flag=0; for(int i=1;2<<i<=n;i++){ long long x=2<<i; if(x==n){ flag=true; break; } }if(flag) cout<<"Yes"; else cout<<"No"<<endl; } return 0; }