#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+=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 |
1 |
Incorrect |
221 ms |
2936 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
408 ms |
3068 KB |
Output isn't correct - 26.37% |