Submission #818467

#TimeUsernameProblemLanguageResultExecution timeMemory
818467pavementCONSUL (info1cup19_consul)C++17
100 / 100
25 ms296 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; mt19937 rng(12345); void solve(int n) { int lim = (n <= 50 ? 50 : 60) / 2; while (lim--) { int k = rng() % n + 1, tmp = kth(k); if (cnt(tmp) > n / 3) { say_answer(tmp); goto done; } } say_answer(-1); done:; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...