Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166085 | C班-范浩宇 | 整数幂 | C++ | 解答错误 | 0 | 5 MS | 252 KB | 317 | 2024-08-19 09:49:38 |
#include <bits/stdc++.h> using namespace std; int T, n, RP; bool f; int main() { cin>>T; while(T--){ cin >> n; RP = 0; f = false; while(RP <= n/2){ RP++; if(pow(2, RP)){ cout<<"Yes"<<endl; f = true; break; } } if(!f) cout<<"No"<<endl; } }