Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166411 欧阳雨泽 二进制半整数 C++ 解答错误 0 1 MS 256 KB 214 2024-08-19 14:16:45

Tests(0/5):


#include<bits/stdc++.h> using namespace std;int main(){long long t,n,sum=0,k=1;cin>>t;while(t--){scanf("%d",&n);while(k){if(n&k){sum++;if(sum>2)break;}k=k<<1;}if(sum>2||n==1)cout<<"no";else cout<<"yes";}return 0;}


测评信息: