提交时间:2024-08-19 09:51:33
运行 ID: 166089
#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; } }