Submission #523110

#TimeUsernameProblemLanguageResultExecution timeMemory
523110BaytoroCONSUL (info1cup19_consul)C++17
100 / 100
30 ms288 KiB
#include <bits/stdc++.h> #include "grader.h" //#include "grader.cpp" using namespace std; void solve(int n) { int q=30; if(n<=50) q=25; while(q--){ int x=rand()%n+1; x=kth(x); if(cnt(x)>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...