提交时间:2023-08-23 22:16:41
运行 ID: 99831
#include <iostream> using namespace std; int main() { long long T; cin>>T; while(T--) { long long n; cin>>n; long long x=n; long long s=0; while(x) { x=(x-1)&x; s++; } if(s==2||(s==1&&n!=1)) { cout<<"yes"<<"\n"; } else { cout<<"no"<<"\n"; } } return 0; }