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"
#define SZ 100
int lang[57][65540];
void excerpt(int *E) {
int i,j;
int guess=26;
int maxmatch=0;
for(j=0;j<56;j++){
int tmp=0;
for(i=0;i<100;i++){
if(lang[j][E[i]])tmp++;
//tmp+=lang[j][E[i]];
}
if(tmp>maxmatch){
maxmatch=tmp;
guess=j;
}
}
int real = language(guess);
for(i=0;i<100;i++){
lang[real][E[i]]++;
}
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |