# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
146067 | fedoseevtimofey | Triple Jump (JOI19_jumps) | C++14 | 1435 ms | 114856 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int Inf = 2e9;
struct Node {
int sum, val, mx;
Node() {
sum = mx = -Inf;
val = 0;
}
Node operator +(const Node &other) const {
Node res;
res.sum = max(sum, other.sum);
res.val = max(val, other.val);
res.mx = max(mx, other.mx);
res.mx = max(res.mx, sum + other.val);
return res;
}
};
const int N = 5e5 + 7;
Node t[4 * N];
void build(int l, int r, int v, vector <int> &a) {
if (l == r) {
# | 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... |