提交时间:2024-08-19 15:42:01
运行 ID: 166948
#include<bits/stdc++.h> using namespace std; int main(){ int t,n; cin>>t; while(t--) { cin>>n; int sum=0; long long f=1; while(f) { if(f&n) { sum++; if(sum>2) break; } f=f<<1; } if(sum>2||n==1) cout<<"no\n"; else cout<<"yes\n"; } return 0; }