Submission #312472

#TimeUsernameProblemLanguageResultExecution timeMemory
312472mohamedsobhi777CONSUL (info1cup19_consul)C++14
100 / 100
30 ms512 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std ; void solve(int n) { /// insert your code /// for example srand(time(0)) ; for(int i = 0 ;i < 23 ; ++ i){ int x = rand() % n + 1; int r = kth(x) ; if(cnt(r) > n / 3){ say_answer(r) ; return ; } } say_answer(-1) ; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...