Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166206 A班陈旻霄 整数幂 C++ 通过 100 6 MS 244 KB 272 2024-08-19 10:08:54

Tests(4/4):


#include<bits/stdc++.h> using namespace std; void calc() { int n; cin>>n; while(n!=1) { if((n>>1)<<1!=n) { cout<<"No\n"; return; } n>>=1; } cout<<"Yes\n"; return; } int main() { int t; cin>>t; while(t--) calc(); return 0; }


测评信息: