| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166651 | 黄一航 | 整数幂 | C++ | Accepted | 100 | 5 MS | 248 KB | 314 | 2024-08-19 15:05:37 |
#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; }