# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
693106 | auslander | CONSUL (info1cup19_consul) | C++17 | 35 ms | 304 KiB |
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 k = 60;
if (n <= 50)
k = 50;
for (i = 1; i <= n; i++)
{
int k = kth(i);
if (mp[k] == 0)
mp[k] = cnt(k);
if (mp[k] > n / 3)
{
say_answer(k);
return;
}
}
say_answer(-1);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |