Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
165943 | cx2024 | 整数幂 | C++ | 通过 | 100 | 4 MS | 240 KB | 305 | 2024-08-19 08:22:35 |
#include <iostream> using namespace std; int main(){ int n , m; cin >> n; int t = 0; for(int i = 1; i <= n; i ++){ cin >> m; do{ t = m % 2; m /= 2; }while(t == 0 && m > 0); if(m > 0){ cout << "No" << endl; }else{ cout << "Yes" << endl; } } return 0; }