# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
330948 | jungsnow | 3단 점프 (JOI19_jumps) | C++14 | 1367 ms | 136080 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
///refers to Maripium's code
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
const int maxn = 500100;
const ll inf = 1e18;
struct sta {
ll pref, ans, suf;
sta() : pref(-inf), ans(-inf), suf(-inf) {}
friend sta operator + (const sta &l, const sta &r) {
sta ans;
ans.pref = max(l.pref, r.pref);
ans.suf = max(l.suf, r.suf);
ans.ans = max({l.ans, r.ans, l.pref + r.suf});
return ans;
}
};
ll A[maxn], Ans[maxn];
sta T[maxn << 2];
vector<pair<int, ll>> es[maxn];
vector<pair<int, int>> qs[maxn];
void build(int v, int l, int r) {
if (l == r) {
T[v].suf = A[l];
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... |