| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 166957 | C班-朱永裕 | 整数幂 | C++ | Compile Error | 0 | 0 MS | 0 KB | 338 | 2024-08-19 15:43:37 |
include<bits/stdc++.h> using namespace std; int main() { int n,t,i,j,s; bool f; cin>>t; for(int i=1;i<=t;i++) { cin>>n; j=0; s=0; f=false; if(n==1)goto ; while(s<n) { j++; s=pow(2,j); if(s==n) { cout<<"Yes"<<endl; f=true; continue; } } if(!f)cout<<"No"<<endl; } return 0; }