Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
166092 C班-范浩宇 整数幂 C++ Wrong Answer 0 6 MS 256 KB 352 2024-08-19 09:52:09

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, 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; } }


Judgement Protocol: