提交时间:2024-08-19 21:46:04
运行 ID: 168001
#include<bits/stdc++.h> using namespace std; int main(){ int x,a[100000]; cin>>x; for(int i=0;i<x;i++)cin>>a[i]; for(int i=0;i<x;i++){ while(a[i]%2==0){ a[i]/=2; } if(a[i]==1)cout<<"Yes"<<endl; else cout<<"NO"<<endl; } }