| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 156661 | 林泽豪 | 二进制半整数 | C++ | Accepted | 100 | 5 MS | 248 KB | 302 | 2024-07-18 10:06:01 |
#include <iostream> using namespace std; int n; int main(){ cin>>n; while(n--){ int a,d=0; cin>>a; if(a==1){ cout<<"no\n"; continue; } while(a){ d+=a&1; if(d>2){ cout<<"no\n"; goto A; } a=a>>1; } cout<<"yes\n"; A:; } return 0; }