#include

using namespace std;

int main()

{

long long int t;

cin>>t;

cout<<endl;

while(t!=0)

{

long long int n,b=0,c=0;

cin>>n;

long long int a[n];

for (long long int i = 0; i < n; ++i)

{

cin>>a[i];

}

if (n==1)

{

cout<<“yes”<<endl;

}

else if (n>1)

{

for (long long int i = 0; i < n; ++i)

{

if(a[i]==1 || a[i]==0)

{

b++;

break;

}

else

{

for (long long int j = 0; j < n; ++j)

{

if ( (i!=j) && (a[i]*a[j]==a[j]))

{

c++;

}

}

}

}

}

if (b>0 || c>0)

cout<<“yes”<<endl;

else

cout<<“no”<<endl;

```
t--;
}
return 0;
```

}