# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
561402 | piOOE | Rainforest Jumps (APIO21_jumps) | C++17 | 1284 ms | 47932 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 "jumps.h"
#include <bits/stdc++.h>
using namespace std;
#define all(x) begin(x), end(x)
const int logn = 19, N = 200001;
int h[N], jump[logn][N], R[N], L[N], spt[logn][N], n, jmp[logn][N];
const int infI = 1e9 + 7;
int Min(int i, int j) {
return h[i] < h[j] ? i : j;
}
int Max(int i, int j) {
return h[i] > h[j] ? i : j;
}
int get_max(int l, int r) {
if (r <= l) return -1;
int sz = __lg(r - l);
return Max(spt[sz][l], spt[sz][r - (1 << sz)]);
}
void init(int nn, vector<int> H) {
n = nn;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |