| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1147171 | txni128 | CONSUL (info1cup19_consul) | C++20 | 0 ms | 408 KiB |
#include <bits/stdc++.h>
#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 rgd;
mt19937 rng(rgd());
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);
}
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
