Submission #315219

#TimeUsernameProblemLanguageResultExecution timeMemory
315219yjojdkgk5bpCONSUL (info1cup19_consul)C++14
85 / 100
27 ms288 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { srand(time(0)); int v; for(int i=1; i<=30; i++) { int k=(rand()%n)+1; v=kth(k); if(cnt(v)>n/3) { say_answer(v); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...