Submission #498942

#TimeUsernameProblemLanguageResultExecution timeMemory
498942cadmiumskyCONSUL (info1cup19_consul)C++14
85 / 100
28 ms328 KiB
#include <random> #include <chrono> #include "grader.h" using namespace std; mt19937 rng(time(0)); void solve(int N) { for(int i=0; i<30; i++) { int index=(rng()%N)+1; int val=kth(index); int freq=cnt(val); if(freq > N/3) { say_answer(val); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...