# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
632300 | ggoh | Languages (IOI10_languages) | C++14 | 3038 ms | 3248 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "grader.h"
using namespace std;
int V[56][65536];
void excerpt(int *E)
{
int l=0,maxi=-1,maxind;
int e[65536]={};
for(int i=0;i<100;i++)
{
e[E[i]]++;
if(e[E[i]]>maxi)
{
maxi=e[E[i]];
maxind=E[i];
}
}
for(int j=0;j<56;j++)
{
maxi=-1;
int maxj;
for(int i=1;i<65536;i++)
{
if(V[j][i]>maxi)
{
maxi=V[j][i];maxj=i;
}
}
if(maxj==maxind)
{
l=j;
break;
}
}
int o=0;
for(int i=0;i<100;i++)
{
int c=0;
for(int j=0;j<56;j++)
{
if(V[j][E[i]]){c++;o=j;}
}
if(c==1)
{
l=o;
break;
}
}
int L=language(l);
for(int i=0;i<100;i++)
{
V[L][E[i]]++;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |