# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1234595 | Aisha | CONSUL (info1cup19_consul) | C++20 | 9 ms | 412 KiB |
#include "grader.h"
#include "bits/stdc++.h"
using namespace std;
mt19937 rng(42532);
void solve(int n) {
for (int i = 1; i <= 40; i ++) {
int x = kth(rng() % n + 1);
int c = cnt(x);
if (c > n / 3) {
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... |