为什么只有50分
查看原帖
为什么只有50分
790361
LeR_lirun楼主2024/5/17 21:10
#include<bits/stdc++.h>
using namespace std;
int a,T,n,tot;
int main()
{
	ios::sync_with_stdio(0);cin.tie(0);
	cin>>T;
	for(int i=1;i<=T;i++){
		cin>>n;
		for(int j=1;j<=n;j++){
			cin>>a;
			if(a==0)tot++;
		}
		if(tot)cout<<"yes"<<endl;
		else cout<<"no"<<endl;
	}
	return 0;
 } 
2024/5/17 21:10
加载中...