提交时间:2024-08-19 15:29:27
运行 ID: 166880
#include <bits/stdc++.h> using namespace std; int main() { int n,x; cin >> n; for (int k = 1;k<=n;k++) { cin >> x; int i=2; int j=2; while (j+i<x) { i*=2; while (j+i<x) { j*=2; } } if (i+j==x) { cout << "yes" << endl; } else { cout << "no" << endl; } } return 0; }