# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1154965 | sash01 | CONSUL (info1cup19_consul) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
bool used[12312];
void solve(int n)
{
std::random_device rd;
std::mt19937 gen(rd());
memset(used,0,sizeof(used));
while(1)
{
std::uniform_int_distribution<> d(1, n);
if(used[d])continue;
int ans=kth(d);
if(cnt(ans)>n/3)return ans;
}
}