# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
130504 | antimirage | 벽 (IOI14_wall) | C++14 | 1108 ms | 99528 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "wall.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 2e6 + 5;
int mx[N * 4], mn[N * 4], n;
void upd (int v, int val, int t) {
if (t == 1) {
mn[v] = max(mn[v], val);
mx[v] = max(mx[v], val);
}
else {
mn[v] = min(mn[v], val);
mx[v] = min(mx[v], val);
}
}
void push (int v) {
upd(v + v, mx[v], 1);
upd(v + v, mn[v], 2);
upd(v + v + 1, mx[v], 1);
upd(v + v + 1, mn[v], 2);
mx[v] = 0;
mn[v] = 1e9;
}
void update (int l, int r, int val, int t, int v = 1, int tl = 1, int tr = n) {
if (l > tr || tl > r)
return;
# | 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... |