Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
168023 | 马承志 | 整数幂 | C++ | 通过 | 100 | 4 MS | 252 KB | 285 | 2024-08-19 21:51:48 |
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; for(int i = 1; i <= n; i++){ int t; cin >> t; while(t % 2 == 0){ t /= 2; } if(t == 1) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }