# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
416420 | valerikk | Rainforest Jumps (APIO21_jumps) | C++17 | 1575 ms | 41364 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int N = 2e5 + 7;
const int L = 19;
const int INF = 1e9;
int n;
int h[N];
pair<int, int> t[4 * N];
void tree_build(int v, int l, int r) {
if (r - l == 1) {
t[v] = {h[l], l};
} else {
int mid = (l + r) / 2;
tree_build(2 * v, l, mid);
tree_build(2 * v + 1, mid, r);
t[v] = max(t[2 * v], t[2 * v + 1]);
}
}
pair<int, int> get_max(int v, int l, int r, int a, int b) {
if (l >= b || r <= a) return {-INF, -INF};
if (l >= a && r <= b) return t[v];
int mid = (l + r) / 2;
return max(get_max(2 * v, l, mid, a, b), get_max(2 * v + 1, mid, r, a, b));
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |