# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1165036 | baldwin_huang | Rainforest Jumps (APIO21_jumps) | C++20 | 4053 ms | 4244 KiB |
#include <bits/stdc++.h>
using namespace std;
int n;
const int INF = 1e9;
struct node {
int left = -1;
int right = -1;
};
vector<node> nodes;
void init(int N, vector<int> H) {
n = N;
nodes = vector<node>(n);
// // Precomputing the left value.
// set<int> heights_l;
// vector<int> last_val_l(n + 1, -1);
// for (int i = 0; i < n; i++) {
// auto it = heights_l.upper_bound(H[i]);
// if (it != heights_l.end()) {
// nodes[i].left = last_val_l[*it];
// }
// heights_l.insert(H[i]);
// last_val_l[H[i]] = i;
// }
// // Precomputing the right values.
# | 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... |