| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72811 | 申明宇 | 19灯的编号 | C++ | Compile Error | 0 MS | 0 KB | 717 | 2024-05-12 18:43:35 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int k,n,a[10001]={0},max=0,x; cin>>k; for(int i=1;i<=k;i++){ cin>>n; for(int j=1;j<=10000;j++) a[j]=0; max=0; for(int j=1;j<=n;j++){ cin>>x; a[x]++; } for(int j=1;j<=n;j++){ if(a[j]>max&&a[j]>0) max=a[j]; } if(n%2==0){ if(max<=n/2) cout<<"Y"<<endl; else cout<<"N"<<endl; } else{ if(max<=n/2+1) cout<<"Y"<<endl; else cout<<"N"<<endl; } } return 0; }*/
Main.cc:40:3: error: expected unqualified-id before '/' token }*/ ^ Main.cc:40:3: error: expected constructor, destructor, or type conversion before '/' token