Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
167191 孔心悦 二进制半整数 C++ 通过 100 8 MS 248 KB 302 2024-08-19 16:12:09

Tests(5/5):


#include <bits/stdc++.h> using namespace std; int main(){ int T,n; cin>>T; while(T--){ cin>>n; if(n<2){ cout<<"no\n"; continue; } int tmp=0; for(int i=0;i<=30;i++){ if((n&(1<<i))==(1<<i))tmp++; } if(tmp<=2)cout<<"yes\n"; else cout<<"no\n"; } return 0; }


测评信息: