Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166514 卢铠铭 整数幂 C++ 解答错误 75 7 MS 264 KB 260 2024-08-19 14:45:28

Tests(3/4):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(n--){ int x; bool f=0; cin>>x; int i=0; for(int i=1;i<=31;i++){ if(pow(2,i)==x){ f=1; } } cout<<(f==1?"Yes\n":"No\n"); } return 0; }


测评信息: