提交时间:2023-08-21 17:15:10

运行 ID: 99057

#include<bits/stdc++.h> using namespace std; #define int long long int t,n; signed main(){ cin>>t; while(t--){ int ans=0; cin>>n; while(n!=0){ while(!(n&1)){ n=n>>1; } n--; ans++; } if(ans<=2) cout<<"yes"<<endl; else cout<<"no"<<endl; } return 0; }