# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1233897 | Hanksburger | CONSUL (info1cup19_consul) | C++20 | 6 ms | 408 KiB |
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
void solve(int n)
{
srand(time(0));
for (int i=1; i<=25; i++)
{
int x=kth(rand()%n+1);
if (cnt(x)*3>n)
{
say_answer(x);
return;
}
}
say_answer(-1);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |