Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166429 | Mino_XIE-谢文凯B班 | 二进制半整数 | C++ | 通过 | 100 | 7 MS | 256 KB | 603 | 2024-08-19 14:23:27 |
#include<bits/stdc++.h> using namespace std; const int N = 1e6 + 10; const int INF = 0x3f3f3f3f; #define LL long long #define quick_cin_cout ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); int main(){ int t,n; cin >> t; while(t--){ cin >> n; int sum = 0; long long flag = 1; while(flag){ if(flag & n){ sum++; if(sum > 2){ break; } } flag = flag << 1; } if(sum > 2 || n == 1){ puts("no"); } else{ puts("yes"); } } return 0; } /*Note:*********************** *****************************/ //coder:Mino_XIE1212