Submission #725549

#TimeUsernameProblemLanguageResultExecution timeMemory
725549groshiCONSUL (info1cup19_consul)C++17
0 / 100
1 ms208 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/2) { 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...