| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 61735 | zubec | Languages (IOI10_languages) | C++14 | 169 ms | 3008 KiB | 
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
/*#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(rand()%56);
    for (int i = 0; i < SZ; i++)
        ++kol[curLang][E[i]];
}
/**
*/
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
