全wa求调
查看原帖
全wa求调
1432337
cxf2012楼主2024/8/27 20:36
#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;
}
2024/8/27 20:36
加载中...