Submission #530168

#TimeUsernameProblemLanguageResultExecution timeMemory
530168luciocfCONSUL (info1cup19_consul)C++14
100 / 100
33 ms284 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { srand(time(0)); for (int i = 0; i < (n <= 50 ? 25 : 30); i++) { int p = (rand()%n)+1; int k = kth(p); if (cnt(k) > n/3) { say_answer(k); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...