Submission #1009719

#TimeUsernameProblemLanguageResultExecution timeMemory
1009719u_suck_oLanguages (IOI10_languages)C++17
0 / 100
10094 ms17488 KiB
#include "bits/stdc++.h" #include <stdlib.h> #include <stdio.h> #include "grader.h" #include "lang.h" #define C 65536 using namespace std; int freq[56][C]; int cfreq[C]; int language(int L); void excerpt(int *E) { memset(cfreq, 0, sizeof cfreq); for (int i = 0; i < 100; i++) { cfreq[E[i]]++; //cout << "added: " << E[i] << " "; } int maxcnt = 0, maxlang = rand() % 56; for (int l = 0; l < 56; l++) { int cnt = 0; for (int i = 0; i < C; i++) { if (cfreq[i] && freq[l][i]) cnt++; } if (cnt > maxcnt) { maxcnt = cnt; maxlang = l; } } int lang = language(maxlang); for (int i = 0; i < C; i++) freq[lang][i] += cfreq[i]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...