Submission #61733

# Submission time Handle Problem Language Result Execution time Memory
61733 2018-07-26T13:13:54 Z zubec Languages (IOI10_languages) C++14
0 / 100
287 ms 2936 KB
#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, 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 287 ms 2912 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 202 ms 2936 KB Output isn't correct - 26.38%