Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
218981 iiiiiii 整数幂 C++ 编译错误 0 0 MS 0 KB 446 2026-10-05 02:24:26

Tests(0/0):


#include<bits/stdc++.h> using namespace std; bool b; int n,num; int main(){ ios::sync_with_stdio(false),cin.tie(nullptr),cout.tie(nullptr); cin>>n; while(n--){ b=false; cin>>num; while(num>1){ if(num%2!=0){ cout<<"No"<<endl; b=true; break; } num/=2; } if(!b)cout<<"Yes"; } return 0;


测评信息: