# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
720065 | numberes | Rainforest Jumps (APIO21_jumps) | C++17 | 1215 ms | 62260 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.
/**
* @date 2023-04-06 17:59:22
* RAmen!
*/
#include<bits/stdc++.h>
#include "jumps.h"
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define pii pair<int, int>
#define ll long long
using namespace std;
int n;
int h[200005], lg2[200005];
int hi[200005][18], lo[200005][18], L[200005][18];
int l[200005], r[200005], p[200005];
int mx[200005][18];
bool cmp(int x, int y) {
return h[x] > h[y];
}
int chmax(int x, int y) {
return h[x] > h[y] ? x : y;
}
int query(int x, int y) {
int d = lg2[y - x + 1];
return chmax(mx[x][d], mx[y - (1 << d) + 1][d]);
}
void init(int N, vector<int> H) {
n = 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... |
# | 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... |