# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
203833 | youngyojun | Sushi (JOI16_sushi) | C++11 | 5106 ms | 82544 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 400005;
const int MAXQ = 25005;
const int SQRN = 655;
struct BUK {
priority_queue<int, vector<int>, greater<int>> QV;
priority_queue<int> PQ;
int A[SQRN];
int S, E, N;
int cal(int s, int e, int x) {
for(int i = s; i <= e; i++)
if(x < A[i]) swap(A[i], x);
return x;
}
int f(int p, int q, int x) {
p = max(S, p); q = min(E, q);
if(p > q) return x;
if(PQ.top() <= x) return x;
if(p <= S && E <= q) {
QV.push(x);
int ret = PQ.top(); PQ.pop();
PQ.push(x);
return ret;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |