# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
333043 | phathnv | Triple Jump (JOI19_jumps) | C++11 | 1351 ms | 88060 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define mp make_pair
#define X first
#define Y second
using namespace std;
typedef long long ll;
typedef pair <int, int> ii;
const int N = 5e5 + 2;
const int INF = 1e9;
struct segmentTree{
int n, maxVal[N * 4], lazy[N * 4], maxA[N * 4];
void build(int id, int l, int r, int a[N]){
if (l == r){
maxVal[id] = maxA[id] = a[l];
return;
}
int mid = (l + r) >> 1;
build(id << 1, l, mid, a);
build(id << 1 | 1, mid + 1, r, a);
maxVal[id] = max(maxVal[id << 1], maxVal[id << 1 | 1]);
maxA[id] = max(maxA[id << 1], maxA[id << 1 | 1]);
}
void doLazy(int id, int l, int r){
maxVal[id] = max(maxVal[id], lazy[id] + maxA[id]);
if (l < r){
# | 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... |