Submission #138069

#TimeUsernameProblemLanguageResultExecution timeMemory
138069BoxworldLanguages (IOI10_languages)C++14
56 / 100
271 ms6136 KiB
#include <stdlib.h> #include <stdio.h> #include <bits/stdc++.h> #include "grader.h" #include "lang.h" #define SZ 100 using namespace std; int G[66000][60]; int ans[60]; void excerpt(int *E) { int mx=0; memset(ans,0,sizeof(ans)); for (int i=0;i<SZ;i++) for (int j=0;j<60;j++) if (G[E[i]][j])ans[j]++; for (int i=0;i<60;i++) if (ans[i]>ans[mx])mx=i; int s = language(mx); for (int i=0;i<SZ;i++)G[E[i]][s]=1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...