Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166195 刘子隽bylz 整数幂 C++ 解答错误 0 5 MS 256 KB 302 2024-08-19 10:08:25

Tests(0/4):


#include<bits/stdc++.h> using namespace std; int main(){ int n,a[114514]; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; for(int j=1;j<=10000;j++){ if(a[i]==1){ cout<<"yes"<<endl; break; } else if(a[i]%2!=0){ cout<<"no"<<endl; break; } else a[i]/=2; } } return 0; }


测评信息: