# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
856452 | hartiksalaria | Bigger segments (IZhO19_segments) | C++17 | 1116 ms | 262144 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
struct Node {
int mx;
Node() {
mx = -1e9;
}
Node(int val) {
mx = val;
}
};
struct Seg {
int n;
vector<Node> st;
Node merge(Node &l, Node &r) {
Node res;
res.mx = max(l.mx, r.mx);
return res;
}
Seg(int _n) {
this->n = _n;
st.assign(4 * _n, Node());
}
void update(int l, int r, int x, int val, int node) {
if (l > x || r < x) {
return;
}
if (l == r) {
st[node].mx = max(st[node].mx, val);
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |