Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
167468 A班陈旻霄 二进制半整数 C++ 解答错误 60 6 MS 244 KB 258 2024-08-19 16:54:53

Tests(3/5):


#include<bits/stdc++.h> using namespace std; void calc() { int n; cin>>n; int k=0; while(n) { if(n%2!=0) k++; n/=2; } if(k<=2) cout<<"yes\n"; else cout<<"no\n"; } int main() { int t; cin>>t; while(t--) calc(); return 0; }


测评信息: