提交时间:2024-07-17 08:05:13

运行 ID: 156207

#include <iostream> using namespace std; void solve() { int n; cin>>n; int sum=0; long long flag=1; while(flag!=0) { if(flag!=0&&n!=0) { sum+=1; if(sum>2) break; } flag=flag<<1; } if(sum>2||n==1) cout<<"no\n"; else cout<<"yes\n"; } int main() { int t; cin>>t; while(t--) { solve(); } return 0; }