提交时间:2024-08-19 16:03:56

运行 ID: 167087

#include<bits/stdc++.h> using namespace std; int a[2000005]; int main(){ long long n,sum=1; cin>>n; for(int i=1;i<=n;i++){ long long x; cin>>x; if((x==1)||(x&1)&&((x-1)&(x-2))!=0)cout<<"no\n"; else{ while(!(x&1)) x>>=1; x--; if((x&(x-1)))cout<<"no/n"; else cout<<"yes\n"; } } }