Submission #364681

# Submission time Handle Problem Language Result Execution time Memory
364681 2021-02-09T17:20:01 Z valerikk CONSUL (info1cup19_consul) C++17
0 / 100
1 ms 364 KB
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;

void solve(int n) {
    mt19937 gen(chrono::high_resolution_clock::now().time_since_epoch().count());
    uniform_int_distribution<int> rd(1, n);
    int q = min(60, n);
    for (int qq = 0; qq < q / 2; qq++) {
        int i = rd(gen);
        int x = kth(i);
        if (3 * cnt(x) > n) 
            say_answer(x);
    }
    say_answer(-1);
}


# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Multiple answers provided for the same testcase!
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Multiple answers provided for the same testcase!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Multiple answers provided for the same testcase!
2 Halted 0 ms 0 KB -