提交时间:2024-06-19 08:53:43
运行 ID: 151816
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; if(n==1){ cout<<"no"<<endl; } else{ int cnt = 0; while(n>0){ if(n%2==1) cnt++; n = n/2; } if(cnt>2) cout<<"no"<<endl; else cout<<"yes"<<endl; } } return 0; }