提交时间:2024-08-20 13:57:22
运行 ID: 168864
#include <bits/stdc++.h> using namespace std; int main(){ int t,n; cin >> t; while(t--){ cin >> n; long long s = 0,f = 1; while(f){ if(f & n){ s++; if(s > 2){ break; } } f = f << 1; } if(s > 2 || n == 1) cout << "no" << endl; else cout << "yes" << endl; } return 0; }