提交时间:2024-08-19 15:30:27

运行 ID: 166885

#include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m; while(m--) { cin>>n; if((n&(n-1))==0) cout<<"yes"<<endl; else{ cout<<"no"<<endl; } } return 0; }