Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166305 A班雷善乔 整数幂 C++ 通过 100 7 MS 260 KB 280 2024-08-19 11:14:08

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main(){ int t,n; cin>>t; for(int i=1;i<=t;i++){ cin>>n; int j=0; while(pow(2,j)<=n){ j++; } if(pow(2,j-1)==n) cout<<"Yes\n"; else cout<<"No\n"; } return 0; }


测评信息: