Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166880 | 罗清腾 | 二进制半整数 | C++ | 解答错误 | 0 | 6 MS | 244 KB | 346 | 2024-08-19 15:29:27 |
#include <bits/stdc++.h> using namespace std; int main() { int n,x; cin >> n; for (int k = 1;k<=n;k++) { cin >> x; int i=2; int j=2; while (j+i<x) { i*=2; while (j+i<x) { j*=2; } } if (i+j==x) { cout << "yes" << endl; } else { cout << "no" << endl; } } return 0; }