Submission #131303

#TimeUsernameProblemLanguageResultExecution timeMemory
131303dragonslayeritLanguages (IOI10_languages)C++14
56 / 100
1316 ms1116 KiB
#include <stdlib.h> #include <stdio.h> #include <set> #include <map> #include <algorithm> #include "grader.h" #include "lang.h" #define SZ 100 std::set<int> had[56]; void excerpt(int *E) { std::set<int> distinct(E,E+100); int sim[56]={}; for(int l=0;l<56;l++){ for(int c:distinct){ sim[l]+=had[l].count(c); } } int guess=std::max_element(sim,sim+56)-sim; int ans=language(guess); for(int c:distinct){ had[ans].insert(c); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...