# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
519541 | Jomnoi | Just Long Neckties (JOI20_ho_t1) | C++17 | 151 ms | 16328 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define DEBUG 0
using namespace std;
const int N = 2e5 + 10;
pair <int, int> a[N];
int b[N], p[N];
int ans[N];
class A {
public :
int a, b;
A() : a(), b() {}
A(int l, int r) : a(l), b(r) {}
A operator+(const A &o) const {
return A(max(a, o.a), max(b, o.b));
}
};
class SegmentTree {
private :
int N;
vector <A> tree;
public :
SegmentTree(int n) : N(n) {
tree.resize(4 * N, A());
build(1, 1, 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... |