Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166153 古浩圳bylz 整数幂 C++ 通过 100 5 MS 252 KB 295 2024-08-19 09:59:45

Tests(4/4):


#include<iostream> using namespace std; int main(){ int n,t,a[1145],i; cin>>n; for(t=1;t<=n;t++){ cin>>a[t]; } for(t=1;t<=n;t++){ while(a[t]%2==0&&a[t]>=2){ a[t]=a[t]/2; } if(a[t]==1){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } } return 0; }


测评信息: