提交时间:2024-08-19 12:54:48
运行 ID: 166328
#include <bits/stdc++.h> using namespace std; long long T, n, f, p; int main(){ cin >> T; while(T--){ cin >> n; f = 0; p = 1; while(p){ if(p & n){ f++; if(f > 2){ cout << "no" << endl; break; } } p <<= 1; } if(n == 1) cout << "no" << endl; else cout << "yes" << endl; } return 0; }