# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
80864 | antimirage | Robots (IOI13_robots) | C++17 | 1898 ms | 32316 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 "robots.h"
#include <bits/stdc++.h>
#define mk make_pair
#define fr first
#define sc second
using namespace std;
const int N = 1e6 + 5, M = 5e4 + 5;
int a, b, n;
pair <int, int> ar[N];
priority_queue <int> q;
inline bool check(int k, int x[], int y[])
{
while ( !q.empty() ) q.pop();
int j = 0, cn = 0;
for (int i = 0; i < a; i++)
{
while ( j < n && ar[j].fr < x[i] )
q.push( ar[j].sc ), j++;
cn = 0;
while ( !q.empty() && cn < k )
q.pop(), cn++;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |