/* */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const ll INF=1LL<<60; typedef pair P; typedef pair PP; const ll MOD=998244353; void solve(){ ll N; cin>>N; vector A(N); for(int i=0;i>A[i]; const int maxT=2*100000; vector cnt(maxT+1,0); map mp; for(int i=0;i1){ for(ll t=maxT+1;t*t<=A[i];t++){ while(A[i]%t==0){ mp[t]++; A[i]/=t; } } } if(A[i]>1){ mp[A[i]]++; A[i]/=A[i]; } } bool flag=true; for(int t=2;t<=maxT;t++){ if(cnt[t]%2!=0){ flag=false; } } if(flag){ for(auto [v,num]:mp){ if(num%2!=0){ flag=false; } } } cout<<(flag?"Yes":"No")<>T; for(int t=0;t