/* package codechef; // don’t place package name! */
import java.util.;
import java.lang.;
import java.io.*;
/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String inp=br.readLine();
inp=inp.trim();
int n=Integer.parseInt(inp);
while(n>0){
String intInput=br.readLine();
int size=Integer.parseInt(intInput);
int i=0,j=0,k=0,m=0;
String inputString=br.readLine();
inputString=inputString.trim();
String[] aa=inputString.split("\\s+");
double[] a=new double[size];
for(i=0;i<size;i++){
a[i]=Double.parseDouble(aa[i]);
//System.out.println(a[i]);
}
if(size<2){
System.out.println("no");
n--;
continue;
}
int fun=0;
for(k=size-1;k>0;k--){
fun=fun+k;
}
int count=0;
//int temp1=0;
//System.out.println("No of computes:"+fun);
double[] temp=new double[fun];
boolean flag=false;
for(i=0,k=0;i<a.length;k++,i++){
for(j=i+1,m=k;j<a.length;j++){
temp[m]=(a[i]*a[j]);
//System.out.println(a[i]+"*"+a[j]+":"+temp[m]+"("+m+")");
m++;
}
k=m-1;
}
for(i=0;i<temp.length;i++){
for(j=0;j<a.length;j++){
// System.out.println("Temp:"+temp[i]+",A:"+a[j]);
if(temp[i]==a[j]){
flag=true;
}
}
}
if(flag==true){
System.out.println("yes");
}
else if(flag==false){
System.out.println("no");
}
n--;
}
}
}
been encountering wrong answer for this submission. any idea why? thank you!