# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
52148 | aquablitz11 | Wall (IOI14_wall) | C++14 | 942 ms | 59580 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "wall.h"
using namespace std;
const int N = 1<<21;
const int INF = 1e9;
int n, lo[N<<1], hi[N<<1], *ans;
void addtag(int p, int c, int d)
{
int a = lo[p], b = hi[p];
lo[p] = min(d, max(a, c));
hi[p] = max(c, min(b, d));
}
void push(int p, int b, int e)
{
if (b == e) {
ans[b] = min(max(ans[b], lo[p]), hi[p]);
} else {
int m = (b+e)/2;
addtag(p<<1, lo[p], hi[p]);
addtag(p<<1|1, lo[p], hi[p]);
}
lo[p] = 0;
hi[p] = INF;
}
void build(int p=1, int b=0, int e=n-1)
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |