| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1147176 | txni128 | CONSUL (info1cup19_consul) | C++20 | 8 ms | 408 KiB |
#include <iostream>
#include <random>
#include "grader.h"
using namespace std;
#define endl '\n'
void speed()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
}
void solve(int n)
{
random_device rd;
mt19937 rng(rd());
uniform_int_distribution <int> d(1 , n);
for(int step = 1; step <= 30; step++)
{
int i = d(rng);
int candidate = kth(i);
int br = cnt(candidate);
if(br > n / 3)
{
say_answer(candidate);
return;
}
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
