Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166485 | 罗清腾 | 整数幂 | C++ | 解答错误 | 75 | 4 MS | 244 KB | 480 | 2024-08-19 14:40:32 |
#include <iostream> using namespace std; int main() { int n,x,k,l; cin >> n; for (int i = 1;i<=n;i++) { cin >> x; l=2; k=1; while (l<x) { for (int j = 1;j<=k;j++) { l*=2; } } if (l==x) { cout << "Yes" << endl; } else { cout << "No" << endl; } } return 0; }