Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
151815 | 柯昊阳 | 二进制半整数 | C++ | Wrong Answer | 60 | 5 MS | 248 KB | 261 | 2024-06-19 08:50:31 |
#include <bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; 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; }