#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
map<int,int>mp[55];
int C[55];
void excerpt(int *E) {
pair<double,int>mx={0,0};
for(int i=0;i<55;i++){
if(C[i]==0)continue;
int c=0;
for(int j=0;j<100;j++){
c+=mp[i][E[j]];
}
mx=max(mx,{(double)c/C[i],i});
}
int l=language(mx.second);
C[l]++;
for(int i=0;i<100;i++){
mp[l][E[i]]++;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
73 ms |
5496 KB |
Execution killed with signal 11 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
69 ms |
5368 KB |
Execution killed with signal 11 |