Submission #725550

#TimeUsernameProblemLanguageResultExecution timeMemory
725550groshiCONSUL (info1cup19_consul)C++17
100 / 100
30 ms296 KiB
#include<bits/stdc++.h> #include "grader.h" using namespace std; void solve(int N) { mt19937 mt(time(nullptr)); int limit=60; if(N<=50) limit=50; limit/=2; while(limit--) { int gdzie=mt()%N+1; int ile=kth(gdzie); if(cnt(ile)>N/3) { say_answer(ile); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...