Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166651 黄一航 整数幂 C++ 通过 100 5 MS 248 KB 314 2024-08-19 15:05:37

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; for(int i=1;i<=n;i++){ int x; cin >> x; bool f=true; while(x!=1){ if(x%2==0) x/=2; else{ f=false; break; } } if(f==true) cout << "Yes" << endl; else cout << "No" << endl; } return 0; }


测评信息: