提交时间:2024-08-19 14:36:05

运行 ID: 166463

#include<bits/stdc++.h> using namespace std; void calc() { int n; cin>>n; int k=0; while(n) { if(n&1) k++; n>>=1; } if(k==2) cout<<"yes"; else cout<<"no"; } int main() { int t; cin>>t; while(t--) calc(); return 0; }