Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166328 | C班-范浩宇 | 二进制半整数 | C++ | 解答错误 | 0 | 13 MS | 240 KB | 361 | 2024-08-19 12:54:48 |
#include <bits/stdc++.h> using namespace std; long long T, n, f, p; int main(){ cin >> T; while(T--){ cin >> n; f = 0; p = 1; while(p){ if(p & n){ f++; if(f > 2){ cout << "no" << endl; break; } } p <<= 1; } if(n == 1) cout << "no" << endl; else cout << "yes" << endl; } return 0; }