# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26448 | Bruteforceman | Robots (IOI13_robots) | C++11 | 2173 ms | 28172 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;
typedef pair <int, int> data;
data rob[1000010];
int weak[1000010];
int small[1000010];
int a, b;
int t;
bool good(int x) {
priority_queue <int> Q;
int pointer = 0;
for(int i = 0; i < a; i++) {
int cap = weak[i];
int take = 0;
while(pointer < t && rob[pointer].first < cap) {
Q.push(rob[pointer].second);
++pointer;
}
while(take < x && !Q.empty()) {
Q.pop();
++take;
}
}
for(int i = pointer; i < t; i++) {
Q.push(rob[i].second);
}
vector <int> v;
while(!Q.empty()) {
# | 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... |