| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166967 | 孔心悦 | 二进制半整数 | C++ | Wrong Answer | 0 | 6 MS | 240 KB | 269 | 2024-08-19 15:44:48 |
#include <bits/stdc++.h> using namespace std; int a[32]={1}; int main(){ int T,n; cin>>T; while(T--){ cin>>n; int tmp=0; for(int i=0;i<=30;i++){ if((n&(1<<i))==(1<<i))tmp++; } if(tmp<=2)cout<<"Yes\n"; else cout<<"No\n"; } return 0; }