提交时间:2024-07-18 10:06:01
运行 ID: 156661
#include <iostream> using namespace std; int n; int main(){ cin>>n; while(n--){ int a,d=0; cin>>a; if(a==1){ cout<<"no\n"; continue; } while(a){ d+=a&1; if(d>2){ cout<<"no\n"; goto A; } a=a>>1; } cout<<"yes\n"; A:; } return 0; }