# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
679980 | heeheeheehaaw | CONSUL (info1cup19_consul) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
}