| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 156356 | λɐſ̣ | 二进制半整数 | C++ | Time Limit Exceeded | 40 | 1000 MS | 276 KB | 567 | 2024-07-17 10:38:47 |
#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; }