| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133377 | 刘轻松 | 19老李吃水果 | C++ | Accepted | 1 MS | 300 KB | 352 | 2025-10-18 16:28:39 |
#include<bits/stdc++.h> using namespace std; int a[10005]; int main(){ int k,n,t; cin>>k; while(k--){ cin>>n; memset(a,0,sizeof(a)); for(int i=1;i<=n;i++){ cin>>t; a[t]++; } int max=0; for(int j=0;j<=10000;j++){ if(a[j]>max) max=a[j]; } if(max>n/2+1) cout<<"N"<<endl; else cout<<"Y"<<endl; } }