# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
294741 | mieszko11b | Wall (IOI14_wall) | C++14 | 1087 ms | 69604 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "wall.h"
#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
using ii = pair<int, int>;
const int inf = 1e9;
const ii EMPTY = {-inf, inf};
ii merge(ii first, ii second) {
if(first.X > second.Y)
return {second.Y, second.Y};
if(first.Y < second.X)
return {second.X, second.X};
return {max(first.X, second.X), min(first.Y, second.Y)};
}
int doop(int x, ii op) {
return min(max(x, op.X), op.Y);
}
struct SegmentTree {
int lv;
vector<ii> lazy;
void init(int n) {
# | 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... |