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