Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
166111 | C班-范浩宇 | 整数幂 | C++ | 解答错误 | 0 | 5 MS | 248 KB | 364 | 2024-08-19 09:57:00 |
#include <bits/stdc++.h> using namespace std; long long 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 = (long long)pow(2, RP); if(RPS){ cout<<"Yes"<<endl; f = true; break; } } if(!f) cout<<"No"<<endl; } }