70分求助
查看原帖
70分求助
1356959
zn1412楼主2024/7/13 10:34
#include<bits/stdc++.h>
using namespace std;
int main(){
	int t,n,p;
	cin>>t;
	int c[t];
	for(int i = 1;i <= t;i++)
	{
		cin>>n;
		c[i] = 0;
		for(int j = 1;j <= n;j++)
		{
			cin>>p;
			if(p == 0)
			{
				c[i] = 1;
			}
		}
	}
	for(int i = 1;i <= t;i++)
	{
		if(c[i] == 1)
			cout<<"yes"<<endl;
		else
			cout<<"no"<<endl;
	}
	return 0;
}
2024/7/13 10:34
加载中...