Submission #1108075

#TimeUsernameProblemLanguageResultExecution timeMemory
1108075HasanV11010238CONSUL (info1cup19_consul)C++17
100 / 100
19 ms504 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; mt19937 rng(time(0)); void solve(int n) { int op = 30; if (n <= 50){ op = 25; } for (int i = 0; i < op; i++){ int ind = rng() % n + 1; int val = kth(ind); if (cnt(val) > n / 3){ say_answer(val); return; } } say_answer(-1); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...