提交时间:2024-04-16 16:49:57
运行 ID: 143568
#include<bits/stdc++.h> using namespace std; int t,n; int main(){ cin>>t; while(t--){ int ans=0; cin>>n; if(n==1){ cout<<"no"<<endl; continue; } while(n!=0){ while(!(n&1))n=n>>1; n--,ans++; } if(ans<=2)cout<<"yes"<<endl; else cout<<"no"<<endl; } return 0; }