Submission #391319

#TimeUsernameProblemLanguageResultExecution timeMemory
391319Urvuk3CONSUL (info1cup19_consul)C++17
19 / 100
333 ms200 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; void solve(int n){ srand(34234); for(int i=1;i<=n/2;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...