Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166353 陈志轩cspyyds 整数幂 C++ 通过 100 6 MS 264 KB 331 2024-08-19 13:53:08

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int n,t,j,s; bool f; int main() { cin>>n; for(int i=1;i<=n;i++) { cin>>t; j=0; s=0; f=false; if(t==1) goto sk; while(s<t) { j++; s=pow(2,j); if(s==t) { sk:cout<<"Yes"<<endl; f=true; } } if(!f)cout<<"No"<<endl; } }


测评信息: