| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 167018 | C班-陈乐 | 二进制半整数 | C++ | Accepted | 100 | 5 MS | 240 KB | 365 | 2024-08-19 15:49:12 |
#include <iostream> #include <algorithm> using namespace std; int main() { int t,n; cin>>t; while(t--) { cin>>n; int sum=0; long long flag=1; while(flag) { if(flag&n) { sum++; if(sum>2) break; } flag=flag<<1; } if(sum>2 || n==1) cout<<"no"<<endl; else cout<<"yes"<<endl; } return 0; }