Submission #720428

#TimeUsernameProblemLanguageResultExecution timeMemory
720428yellowtoadCONSUL (info1cup19_consul)C++17
100 / 100
30 ms208 KiB
#include <bits/stdc++.h> #include "grader.h" void solve(int n) { int tmp, cnnt = 0; srand(time(NULL)); while (((n > 50) && (cnnt < 30)) || ((n <= 50) && (cnnt < 25))) { tmp = kth(rand()%n+1); if (cnt(tmp) > n/3) { say_answer(tmp); return; } cnnt++; } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...