# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
197615 | sinhriv | 3단 점프 (JOI19_jumps) | C++17 | 1232 ms | 91200 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/***
Todo:
If we fix A, then B should be the next element to the right which is > A
Same thing happens if we fix B.
So stack to find the closest greater left and right.
After that do something with C?
***/
#include<bits/stdc++.h>
#define left owo
#define right uwu
using namespace std;
const int N = 4002000;
const int MAXN = 500050;
struct SegmentTree{
int ans[N];
int best[N];
int lazy[N];
#define mid ((l + r) >> 1)
SegmentTree() {
# | 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... |