Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166418 B班_贾昊天 整数幂 C++ 编译错误 0 0 MS 0 KB 382 2024-08-19 14:19:03

Tests(0/0):


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


测评信息: