提交时间:2024-08-19 22:09:27

运行 ID: 168062

#include <bits/stdc++.h> using namespace std; int main () { int n, a; cin >> n; for (int i = 1; i <= n; i++) { cin >> a; while (a) { if (a % 2 == 1) { cout << "No" << endl; break; } if (a % 2 == 0) { a /= 2; } if (a == 2) { cout << "Yes" << endl; break; } } } return 0; }