# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
8073 | woqja125 | Languages (IOI10_languages) | C++98 | 370 ms | 2988 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 <stdlib.h>
#include <stdio.h>
#include "grader.h"
#include "lang.h"
int counts[60][65540];
void excerpt(int *E)
{
int i,j,similcnt,mxv=-1,mxp,ans;
for(i=0;i<=55;++i)
{
similcnt=0;
for(j=0;j<100;++j)if(counts[i][E[j]])similcnt++;
if(similcnt>mxv)
{
mxv=similcnt;
mxp=i;
}
}
ans=language(mxp);
for(i=0;i<100;++i)counts[ans][E[i]]=1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |