#include <stdlib.h>
#include <stdio.h>
#include "grader.h"
#include "lang.h"
#define SZ 100
int x[66000][65];
int y[65];
void excerpt(int *E)
{
int mx2 = -1, mi2 = 0;
for(int i = 0; i < 56; i++) y[i] = 0;
for(int i = 0; i < 100; i++)
{
int mx = -1, mi = 0;
for(int j = 0; j < 56; j++)
{
if(x[E[i]][j] > mx) mx = x[E[i]][j], mi = j;
}
y[mi]++;
}
for(int i = 0; i < 56; i++)
{
if(y[i] > mx2) mx2 = y[i], mi2 = i;
}
int k = language(mi2);
for(int i = 0; i < 100; i++)
{
x[E[i]][k]++;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
284 ms |
6344 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
277 ms |
6368 KB |
Output is partially correct - 33.57% |