| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 165971 | 赖泓君 | 整数幂 | C++ | Wrong Answer | 0 | 5 MS | 256 KB | 378 | 2024-08-19 08:55:28 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[1001]; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ int p=1; while(a[i]>1){ if(a[i]%2!=0){ p=0; break; }else if(a[i]==2){ break; } a[i]=a[i]/2; } if(p==1){ cout<<"yes"<<endl; }else{ cout<<"no"<<endl; } } }