提交时间:2024-08-19 17:06:58
运行 ID: 167644
#include<bits/stdc++.h> using namespace std; int a[10] = {2, 4, 8, 16, 32, 64, 128, 256, 512}; int main(){ int n, b = 0; cin >> n; for(int i = 1; i <= n; i++){ int t; cin >> t; for(int j = 0; j <= 8; j++){ if(a[j] == t){ cout << "yes" << endl; b = 1; break; } } if(b == 0) cout << "no" << endl; } return 0; }