# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
797290 | ymm | 3단 점프 (JOI19_jumps) | C++17 | 868 ms | 79304 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define Loop(x,l,r) for (ll x = (l); x < (r); ++x)
#define LoopR(x,l,r) for (ll x = (r)-1; x >= (l); --x)
typedef long long ll;
typedef std::pair<int,int> pii;
using namespace std;
const int N = 500'010;
namespace seg {
struct node {
int ans, mxab, mxc;
} t[N*4];
int sz;
node merge(const node &l, const node &r) {
node ans;
ans.ans = max({l.ans, r.ans, l.mxab + r.mxc});
ans.mxab = max(l.mxab, r.mxab);
ans.mxc = max(l.mxc, r.mxc);
return ans;
}
void merge(int i) { t[i] = merge(t[2*i+1], t[2*i+2]); }
void init(const vector<int> &vec, int i, int b, int e) {
if (e-b == 1) {
t[i].ans = t[i].mxc = vec[b];
t[i].mxab = 0;
return;
}
# | 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... |