提交时间:2024-07-17 10:35:14
运行 ID: 156349
#include<bits/stdc++.h> using namespace std; int x; double y; string check(int n){ for(int i=1;i<=n;i++){ x=n-i; if(log2(x)*10-int(log2(x)*10)==0&&log2(i)*10-int(log2(i)*10)==0){ return "yes"; } } return "no"; } int main() { int n,t; cin>>t; for(int i=1;i<=t;i++){ cin>>n; cout<<check(n)<<endl; } return 0; }