# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
420356 | iulia13 | 벽 (IOI14_wall) | C++14 | 911 ms | 72356 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include "wall.h"
using namespace std;
const int N = 2e6 + 5;
const int INF = 2e9;
struct Node{
int minim, maxim;
} seg[4 * N];
void op1(int nod, int val)
{
seg[nod].minim = min(seg[nod].minim, val);
seg[nod].maxim = min(val, seg[nod].maxim);
}
void op2(int nod, int val)
{
seg[nod].maxim = max(seg[nod].maxim, val);
seg[nod].minim = max(val, seg[nod].minim);
}
void push(int nod)
{
int ls = 2 * nod, rs = ls + 1;
op1(ls, seg[nod].minim);
op1(rs, seg[nod].minim);
op2(ls, seg[nod].maxim);
op2(rs, seg[nod].maxim);
}
void update(int nod, int l, int r, int ql, int qr, int val, int tip)
{
if (l > r || l > qr || r < ql)
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... |