| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166210 | 李澄 | 二进制半整数 | C++ | Wrong Answer | 0 | 6 MS | 248 KB | 605 | 2024-08-19 10:09:23 |
#include <bits/stdc++.h> using namespace std; long long a[70]; int main() { a[0] = 1; for (int i = 1; i <= 62; i++) { a[i] = a[i - 1] * 2; } int t; cin >> t; while (t--) { int n; cin >> n; bool flag = false; for (int i = 0; i <= 62; i++) { for (int j = 0; j <= 62; j++) { if (n == a[i] + a[j]) { flag = true; break; } if (a[i] + a[j] > n) j = 62; } } if (flag) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }