제출 #588150

#제출 시각아이디문제언어결과실행 시간메모리
588150DeepessonLanguages (IOI10_languages)C++17
0 / 100
306 ms5220 KiB
#include <bits/stdc++.h> #include "lang.h" #include "grader.h" #define fi first #define se second #define pb push_back using ll = long double; ll lang[60][66000]; int tot[60]; void excerpt(int *E) { { int best=0;double score=0; for(int i=0;i!=60;++i){ if(!tot[i])continue; long double bonus=0; for(int j=0;j!=100;++j){ bonus+=(double)lang[i][E[j]] / (double)tot[i]; } if(bonus>=score){ best=i; score=bonus; continue; } } int k = language(best); for(int i=0;i!=100;++i){ tot[k]++; lang[k][E[i]]++; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...