| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166380 | 陈熙峻B班 | 整数幂 | C++ | Accepted | 100 | 9 MS | 264 KB | 375 | 2024-08-19 14:04:27 |
#include <bits/stdc++.h> using namespace std; int n,t,i,j,s; bool f; int main() { cin>>t; for(i=1;i<=t;i++) { cin>>n; j=0; s=0; f=false; if(n==1)goto sk; while(s<n) { j++; s=pow(2,j); if(s==n) { sk:cout<<"Yes"<<endl; f=true; continue; } } if(f==false) { cout<<"No"<<endl; } } return 0; }