Submission #391320

#TimeUsernameProblemLanguageResultExecution timeMemory
391320Urvuk3CONSUL (info1cup19_consul)C++17
100 / 100
37 ms204 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; void solve(int n){ srand(34234); for(int i=1;i<=min(n/2,30);i++){ int r=rand()%n+1; int za_koga_je_glasao_r=kth(r); if(cnt(za_koga_je_glasao_r)>n/3){ say_answer(za_koga_je_glasao_r); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...