Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
156661 | 林泽豪 | 二进制半整数 | C++ | 通过 | 100 | 5 MS | 248 KB | 302 | 2024-07-18 10:06:01 |
using namespace std; int n; int main(){ cin>>n; while(n--){ int a,d=0; cin>>a; if(a==1){ cout<<"no\n"; continue; } while(a){ d+=a&1; if(d>2){ cout<<"no\n"; goto A; } a=a>>1; } cout<<"yes\n"; A:; } return 0; }
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0
exit code: 0, checker exit code: 0