제출 #270863

#제출 시각아이디문제언어결과실행 시간메모리
270863TMJNLanguages (IOI10_languages)C++17
0 / 100
143 ms376 KiB
#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}); } language(0); return; int l=language(mx.second); C[l]++; for(int i=0;i<100;i++){ mp[l][E[i]]++; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...