Submission #530166

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