Submission #427409

#TimeUsernameProblemLanguageResultExecution timeMemory
427409MilosMilutinovicCONSUL (info1cup19_consul)C++14
100 / 100
37 ms328 KiB
#include "grader.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); if (cnt(element) > N / 3) { say_answer(element); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...