Submission #530167

#TimeUsernameProblemLanguageResultExecution timeMemory
530167luciocfCONSUL (info1cup19_consul)C++14
0.12 / 100
59 ms240 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { srand(time(0)); for (int i = 0; i < 60; 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...