Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166069 账号已封禁@magicoj 整数幂 C++ 解答错误 75 5 MS 240 KB 336 2024-08-19 09:41:29

Tests(3/4):


#include<bits/stdc++.h> using namespace std; int main(){ long int t,n; int temp=1; bool tmp=false; cin>>t; for(int i=1;i<=t;i++){ cin>>n; temp=1; tmp=false; while(temp<=n){ temp=temp*2; if(temp==n){ cout<<"Yes"<<endl; tmp=true; break; } } if(tmp==false) cout<<"No"<<endl; } }


测评信息: