Submission #490105

#TimeUsernameProblemLanguageResultExecution timeMemory
490105alexdumitruCONSUL (info1cup19_consul)C++14
100 / 100
24 ms200 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { srand(time(NULL)); for(int i=1;i<=25;i++) { int person=rand()%n+1; int vote=kth(person); int ap=cnt(vote); if(ap>n/3) { say_answer(vote); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...