# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
679980 | 2023-01-09T17:50:53 Z | heeheeheehaaw | CONSUL (info1cup19_consul) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> #include "grader.h" using namespace std; void solve(int n) { srand(435623); rand(), rand(), rand(); for(int i = 1; i <= 50; i++) { int poz = (rand() % n) + 1; int val = kth(poz); int nr = cnt(val); if(nr > n / 3) { say_answer(val); return; } } say_answer(-1); return; } int main() { return 0; }