# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
235650 | crossing0ver | 로봇 (IOI13_robots) | C++17 | 1843 ms | 29988 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define ll long long
#define ld long double
#include "robots.h"
using namespace std;
int a,b,t,X[50001],Y[50001],W[1000001],S[1000001], flag = 1;
vector<pair<int,int> > f;
void count_max() {
int mxW = 0;
int mxS = 0;
for (int i = 0; i < a; i++) mxW = max (mxW,X[i]);
for (int i = 0; i < b; i++) mxS = max (mxS,Y[i]);
for (int i = 0; i < t; i++)
if (W[i] >= mxW && S[i] >= mxS) flag = 0;
}
bool solve (int d) {
int ptr = 0;
priority_queue<int> pq;
for (int i = 0; i < a; i++) {
int s = d;
while (ptr < t && X[i] > f[ptr].first) {
pq.push (f[ptr].second),ptr++;
}
while (s && !pq.empty()) {
pq.pop(),s--;
}
}
vector <int> v;
while (!pq.empty()) {
v.push_back(pq.top());
# | 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... |