# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
49003 | Namnamseo | Robots (IOI13_robots) | C++17 | 2267 ms | 65536 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 <algorithm>
#include <functional>
#include <queue>
using namespace std;
int *x, *y;
int n,p,q;
typedef pair<int,int> pp;
pp da[1000010];
bool tester(int bae){
int ind=0;
priority_queue<int> pq;
for(int i=0; i<p; ++i){
int cur=x[i];
while(ind<n && da[ind].first<cur){
pq.push(da[ind].second);
++ind;
}
for(int j=0; j<bae; ++j){
if(pq.size()) pq.pop();
else break;
}
}
for(;ind<n;++ind) pq.push(da[ind].second);
# | 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... |