Submission #973061

#TimeUsernameProblemLanguageResultExecution timeMemory
973061sleepntsheepCONSUL (info1cup19_consul)C++14
100 / 100
11 ms344 KiB
#include "grader.h" #include <stdlib.h> #include <time.h> void solve(int n) { srand(time(0)); for(int i=0;i<25;++i) { int j=rand()%n+1,x; if (cnt(x=kth(j))>n/3){say_answer(x);return;} } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...