# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
879255 | marcid | 벽 (IOI14_wall) | C++17 | 560 ms | 77648 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "wall.h"
#include <bits/stdc++.h>
using namespace std;
#define vb vector<bool>
#define vi vector<int>
#define ii pair<int,int>
#define iii tuple<int,int,int>
#define vii vector<ii>
#define viii vector<iii>
#define pb push_back
#define eb emplace_back
#define mod 1000000007
const int maxn = 1<<21;
ii tree[(maxn<<2)+2];
void push(int v) {
tree[v<<1].first=min(max(tree[v<<1].first,tree[v].first),tree[v].second);
tree[v<<1|1].first=min(max(tree[v<<1|1].first,tree[v].first),tree[v].second);
tree[v<<1].second=min(max(tree[v].first,tree[v<<1].second),tree[v].second);
tree[v<<1|1].second=min(max(tree[v].first,tree[v<<1|1].second),tree[v].second);
}
void update(int t, int l, int r, int x, int v, int tl, int tr) {
if (tl > r || l > tr) return;
if (l <= tl && tr <= r) {
if (t-1) {
tree[v].first=min(tree[v].first,x);
tree[v].second=min(tree[v].second,x);
} else {
tree[v].first=max(tree[v].first, x);
컴파일 시 표준 에러 (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... |