#include <stdlib.h>
#include <stdio.h>
#include "grader.h"
#include "lang.h"
#define SZ 100
/*#include <iostream>
using namespace std;*/
int prev[1100000];
int kol[56][65536];
void excerpt(int *E) {
int mx = -1;
int needLang = 0;
for (int i = 0; i <= 55; i++){
int sum = 0;
for (int j = 0; j < SZ; j++)
sum += kol[i][E[j]];
if (sum > mx){
mx = sum;
needLang = i;
}
//cout << i << ' ' << sum << endl;
}
//cout << needLang << endl;
//cout << endl;
int curLang = language(needLang);
for (int i = 0; i < SZ; i++)
++kol[curLang][E[i]];
}
/**
*/
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
261 ms |
3040 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
225 ms |
2884 KB |
Output isn't correct - 26.38% |