# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
82025 | zoooma13 | Robots (IOI13_robots) | C++14 | 2059 ms | 19224 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>
using namespace std;
#define MAX_T 1000006
#define MAX_A 50004
#define We first
#define Si second
int A ,B ,T;
int Weak[MAX_A];
int Small[MAX_A];
pair <int ,int> WeTs[MAX_T];
bool can(int X)
{
int Weak_ptr = 0;
priority_queue <int> pq;
for(int i=0; i<A; i++)
{
while(Weak_ptr < T && WeTs[Weak_ptr].We < Weak[i])
pq.push(WeTs[Weak_ptr++].Si);
int CanHave = X;
while(!pq.empty() && CanHave--)
pq.pop();
}
while(Weak_ptr < T)
# | 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... |