提交时间:2024-08-19 14:37:43
运行 ID: 166474
#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<=1) cout<<"yes"; else cout<<"no"; } int main() { int t; cin>>t; while(t--) calc(); return 0; }