50分求助
查看原帖
50分求助
1380501
Im_a_big_SB楼主2024/12/21 09:01
#include<iostream>
using namespace std;
int main(){
	int t,n,s,cnt=0;
	cin>>t;
	for(int i=1;i<=t;i++){
		cin>>n;
		for(int j=1;j<=n;j++){
			cin>>s;
			if(s==0){
				cnt++;
			}
		}
		if(cnt>=1)cout<<"yes"<<endl;
		else cout<<"no"<<endl;
	}
    return 0;
}
2024/12/21 09:01
加载中...