Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166359 | 欧阳雨泽 | 整数幂 | C++ | 运行出错 | 0 | 1 MS | 248 KB | 229 | 2024-08-19 13:55:31 |
#include<bits/stdc++.h> using namespace std; int main(){ int t,n,sum=1;cin>>t; while(t--){ scanf("%d",n); while(n>sum){ sum*=2; } if(sum==n)cout<<"Yes"; else cout<<"No"; cout<<"\n"; } return 0; }