提交时间:2024-07-17 10:38:47
运行 ID: 156356
#include<bits/stdc++.h> using namespace std; int x; double y; inline int read() { int x=0,f=1;char ch=getchar(); while (ch<'0'||ch>'9'){if (ch=='-') f=-1;ch=getchar();} while (ch>='0'&&ch<='9'){x=x*10+ch-48;ch=getchar();} return x*f; } 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() { ios::sync_with_stdio(0); int n,t; cin>>t; for(int i=1;i<=t;i++){ cin>>n; cout<<check(n)<<endl; } return 0; }