| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 151816 | 柯昊阳 | 二进制半整数 | C++ | Accepted | 100 | 4 MS | 248 KB | 327 | 2024-06-19 08:53:43 |
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; if(n==1){ cout<<"no"<<endl; } else{ int cnt = 0; while(n>0){ if(n%2==1) cnt++; n = n/2; } if(cnt>2) cout<<"no"<<endl; else cout<<"yes"<<endl; } } return 0; }