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 "grader.h"
#include <map>
using namespace std;
map<int, int>mp;
void solve(int n)
{
int i;
int l = 60;
if (n <= 50)
l = 50;
for (i = 1; i <= min(l, n);)
{
int k = kth(i);
i++;
if (mp[k] == 0)
{
mp[k] = cnt(k);
i++;
}
if (mp[k] > n / 3)
{
say_answer(k);
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... |