| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166932 | 黄立聪 | 整数幂 | C++ | Wrong Answer | 0 | 311 MS | 244 KB | 309 | 2024-08-19 15:38:47 |
#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; }