# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
197703 | quocnguyen1012 | Triple Jump (JOI19_jumps) | C++14 | 1357 ms | 104568 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>
#define fi first
#define se second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
const int maxn = 5e5 + 5;
const ll inf = 1e17;
class node
{
public:
ll mx, mx_arr, ret;
node(ll mx = 0, ll mx_arr = 0, ll ret = 0):
mx(mx), mx_arr(mx_arr), ret(ret) {}
node operator + (const node & other) const
{
node res;
res.ret = max({ret, other.ret, mx_arr + other.mx});
res.mx = max(mx, other.mx);
res.mx_arr = max(mx_arr, other.mx_arr);
return res;
}
};
class segment_tree
Compilation message (stderr)
# | 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... |