| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 167034 | 黄立聪 | 整数幂 | C++ | Wrong Answer | 0 | 323 MS | 244 KB | 311 | 2024-08-19 15:50:59 |
#include<iostream> using namespace std; int main() { int n,a,b,c; cin>>n; for(int i=1;i<=n;i++) { cin>>a; b=1; for(int j=1;j<=a;j++) { b=b*2; if(b==a) { cout<<"Yes"<<"\n"; break; } } if(b!=a) { cout<<"No"<<"\n"; break; } } return 0; }