提交时间:2024-08-19 19:28:04

运行 ID: 167843

#include<iostream> #include<cmath> using namespace std; int main(){ int T,n; bool is; for(cin>>T; T--; cout<<(is ? "Yes" : "No")<<'\n'){ cin>>n; is = double(int(log2(n)))==log2(n); } return 0; }