提交时间:2024-06-19 08:50:31
运行 ID: 151815
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; 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; }