提交时间:2023-08-22 08:37:57
运行 ID: 99119
#include<bits/stdc++.h> using namespace std; #define int long long int t, n; signed main() { cin >> t; while(t--) { bool flag = false; cin >> n; for(int i = 0; i <= 30; i++) { for(int j=0;j<=30;j++) { if((1<<i)+(1<<j)==n) flag = true; } } if(flag) cout << "yes" << endl; else cout << "no" << endl; } return 0; }