Submission #427403

# Submission time Handle Problem Language Result Execution time Memory
427403 2021-06-14T14:56:54 Z MilosMilutinovic CONSUL (info1cup19_consul) C++14
Compilation error
0 ms 0 KB
#include "code.h"
#include <bits/stdc++.h>
using namespace std;

mt19937 rng(time(0));

void solve(int N) {
    for (int rep = 1; rep <= 25; rep++) {
        int pos = rng() % N + 1;

        int element = kth(pos);

        int occ = cnt(element);

        if (occ > n / 3) return element;
    }
    say_answer(-1);
}

Compilation message

consul.cpp:1:10: fatal error: code.h: No such file or directory
    1 | #include "code.h"
      |          ^~~~~~~~
compilation terminated.