Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166091 | 账号已封禁@magicoj | 整数幂 | C++ | 解答错误 | 75 | 4 MS | 248 KB | 411 | 2024-08-19 09:51:44 |
#include<bits/stdc++.h> using namespace std; int main(){ long int t,n; long 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; } } //首 啊啊啊啊啊啊啊啊 (这代码臭了,不能要了)