# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
160356 | iefnah06 | 3단 점프 (JOI19_jumps) | C++11 | 1282 ms | 107512 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MAXN = 5.1e5;
int N;
int A[MAXN];
struct node_t {
int base;
int add;
int best;
node_t() {}
node_t(int base_, int add_, int best_) : base(base_), add(add_), best(best_) {}
node_t operator + (const node_t& o) const {
node_t res;
res.base = max(base, o.base);
res.add = max(add, o.add);
res.best = max({best, o.best, add + o.base});
return res;
}
};
struct seg {
seg* ch[2];
node_t res;
# | 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... |