Submission #525712

#TimeUsernameProblemLanguageResultExecution timeMemory
525712fuad27CONSUL (info1cup19_consul)C++17
0 / 100
2 ms200 KiB
#include "grader.h" #include<bits/stdc++.h> using namespace std; void solve(int n) { srand(time(NULL)); for(int k = 0;k<30;k++) { int i = rand()%n + 1; long long num = kth(i); if(cnt(num) > (n+2)/ 3){ say_answer(num); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...