Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
167087 | B班蔡简谦 | 二进制半整数 | C++ | Wrong Answer | 0 | 7 MS | 252 KB | 321 | 2024-08-19 16:03:56 |
#include<bits/stdc++.h> using namespace std; int a[2000005]; int main(){ long long n,sum=1; cin>>n; for(int i=1;i<=n;i++){ long long x; cin>>x; if((x==1)||(x&1)&&((x-1)&(x-2))!=0)cout<<"no\n"; else{ while(!(x&1)) x>>=1; x--; if((x&(x-1)))cout<<"no/n"; else cout<<"yes\n"; } } }