| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 173615 | 詹钧尧 | 整数幂 | C++ | No Test Data | 0 | 0 MS | 0 KB | 399 | 2024-08-20 22:11:25 |
#include<bits/stdc++.h> using namespace std; int main() { int t = 0; scanf("%d",&t); int s=1; int n = 0; int a=0; for(int i=1;i<=t;i++) { scanf("%d",&n); if(n%2) { printf("no\n"); continue; } a=n; s=1; while(a>1) { a = (a>>1); s=(s<<1); } if(s==n) { printf("yes\n"); } else { printf("no\n"); } } return 0; }