| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 168118 | C班—刘铠锋 | 整数幂 | C++ | Accepted | 100 | 5 MS | 248 KB | 260 | 2024-08-19 22:46:49 |
#include <bits/stdc++.h> using namespace std; int main () { int n, a; cin >> n; for (int i = 1; i <= n; i++) { cin >> a; if (a > 0 && (a & (a - 1) ) == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }