提交时间:2024-08-19 13:55:31

运行 ID: 166359

#include<bits/stdc++.h> using namespace std; int main(){ int t,n,sum=1;cin>>t; while(t--){ scanf("%d",n); while(n>sum){ sum*=2; } if(sum==n)cout<<"Yes"; else cout<<"No"; cout<<"\n"; } return 0; }