Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
166089 C班-范浩宇 整数幂 C++ 解答错误 0 4 MS 244 KB 343 2024-08-19 09:51:33

Tests(0/4):


#include <bits/stdc++.h> using namespace std; int T, n, RP, RPS; bool f; int main() { cin>>T; while(T--){ cin >> n; RP = 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; } }


测评信息: