提交时间:2024-08-19 09:51:44

运行 ID: 166091

#include<bits/stdc++.h> using namespace std; int main(){ long int t,n; long int temp=1; bool tmp=false; cin>>t; for(int i=1;i<=t;i++){ cin>>n; temp=1; tmp=false; while(temp<n){ temp=temp*2; if(temp==n){ cout<<"Yes"<<endl; tmp=true; break; } } if(tmp==false) cout<<"No"<<endl; } } //首 啊啊啊啊啊啊啊啊 (这代码臭了,不能要了)