Submission #525714

#TimeUsernameProblemLanguageResultExecution timeMemory
525714fuad27CONSUL (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)); int limit = 0; if(n <= 50)limit = 25; else limit=30; for(int k = 0;k<limit;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...