Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
150263 龚梓嘉 二进制半整数 C++ Wrong Answer 0 4 MS 252 KB 313 2024-06-01 17:29:21

Tests(0/5):


#include<bits/stdc++.h> using namespace std; int main (){ int n;long long x; cin>>n; for(int i=1;i<=n;i++){ cin>>x; if((x==1)||(x&1)&&((x-1)&(x-2))!=0)cout<<"No"<<endl; else { while (!(x&1)) x>>=1; x--; if ((x&(x-1)))cout<<"No"<<endl; else cout<<"yes"<<endl; } } return 0; }


Judgement Protocol: