# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
412480 | tatyam | Rainforest Jumps (APIO21_jumps) | C++17 | 1563 ms | 45088 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
void chmax(int& a, int b){ if(a < b) a = b; }
int N;
vector<int> H, RMQ, idx;
vector<vector<int>> low, high;
int get(int l, int r){
int ans = 0;
for(l += N, r += N; l < r; l >>= 1, r >>= 1){
if(l & 1) chmax(ans, RMQ[l++]);
if(r & 1) chmax(ans, RMQ[--r]);
}
return ans;
}
int get_idx(int l, int r){
int ans = N;
for(l += N, r += N; l < r; l >>= 1, r >>= 1){
if(l & 1){
if(H[ans] < H[idx[l]]) ans = idx[l];
l++;
}
if(r & 1){
r--;
if(H[ans] < H[idx[r]]) ans = idx[r];
}
}
return ans;
}
# | 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... |