This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
//#include <fstream>
#include "grader.h"
#define endl '\n'
#define mod 10007
#define INF 100000000000000000
#define ll long long
//ofstream fout("split.out");
//ifstream fin("split.in");
//#define cin fin
//#define cout fout
using namespace std;
void solve(int N)
{
for(int i = 0; i < 30; i++)
{
int x = kth(((int)rand()%N)+1);
if(cnt(x) > 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... |