#include<bits/stdc++.h>
using namespace std;
long long t,n,a[1000001];
int main(){
ios::sync_with_stdio(0);
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>n;
bool x=0;
for(int j=1;j<=n;j++)
{
cin>>a[j];
if(a[j]==0)x=1;
}
if(x==0)cout<<"NO";
else cout<<"YES";
cout<<"\n";
}
return 0;
}