# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
799695 | IvanJ | 벽 (IOI14_wall) | C++17 | 1388 ms | 102408 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "wall.h"
#include<bits/stdc++.h>
#define pb push_back
#define x first
#define y second
#define all(a) (a).begin(), (a).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
struct Seg {
int pot;
vector<ii> T, L;
void init(int n) {
pot = 1;
while(pot < n) pot <<= 1;
T = vector<ii>(pot << 1, {0, 1e5});
L = vector<ii>(pot << 1, {0, 1e5});
}
ii merge(ii f, ii g) {
ii ret;
if(g.x >= f.y) return {f.y, f.y};
if(g.y <= f.x) return {f.x, f.x};
return {max(g.x, f.x), min(g.y, f.y)};
}
# | 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... |