Submission #924812

#TimeUsernameProblemLanguageResultExecution timeMemory
924812heeheeheehaawCONSUL (info1cup19_consul)C++17
100 / 100
11 ms600 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; mt19937 rnd(145324523412); void solve(int n) { int cntt = 50 / 2; while(cntt--) { int val = rnd() % n + 1; int nr = kth(val); int freq = cnt(nr); if(freq > n / 3) { say_answer(nr); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...