提交时间:2024-08-19 16:59:51
运行 ID: 167601
#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 i = 0; i <= 8; i++){ if(a[i] == t){ cout << "yes" << endl; b = 1; break; } } if(b == 0) cout << "no" << endl; } return 0; }