| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166948 | 刘子隽bylz | 二进制半整数 | C++ | Accepted | 100 | 6 MS | 248 KB | 306 | 2024-08-19 15:42:01 |
#include<bits/stdc++.h> using namespace std; int main(){ int t,n; cin>>t; while(t--) { cin>>n; int sum=0; long long f=1; while(f) { if(f&n) { sum++; if(sum>2) break; } f=f<<1; } if(sum>2||n==1) cout<<"no\n"; else cout<<"yes\n"; } return 0; }