| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123597 | 袁龙浩 | 19老李吃水果 | C++ | Compile Error | 0 MS | 0 KB | 825 | 2025-07-06 15:28:16 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int k,n,m,max=0; int arr[10000]={0}; cin>>n; for(int i=0;i<m;i++){ max=0; cin>>m; for(int j=1;j<10000;j++){ cin>>k; arr[k]++; } for(int j=0;j<10000;j++){ if(arr[j]>0){ if(max<arr[j]){ max=arr[j]; } } if(m%2==0){ if(max<=m/2){ cout<<"Y"<<endl; } else if(m%2!=0){ if(max<=(m/2+1)) cout<<"Y"<<endl; else cout<<"N"<<endl; } max=0; } return 0; }
Main.cc: In function 'int main()': Main.cc:37:1: error: expected '}' at end of input } ^ Main.cc:37:1: error: expected '}' at end of input