# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1171218 | InvMOD | Triple Jump (JOI19_jumps) | C++20 | 768 ms | 89616 KiB |
#include<bits/stdc++.h>
using namespace std;
#define sz(v) (int)(v).size()
template<typename T> bool ckmx(T& a, const T& b){
if(a < b)
return a = b, true;
return false;
}
using ll = long long;
struct SMT{
struct Node{
ll ab, c, best;
Node(ll ab = 0, ll c = 0, ll best = 0): ab(ab), c(c), best(best) {}
friend Node operator + (const Node& x, const Node& y){
Node ans = Node();
ans.ab = max(x.ab, y.ab);
ans.c = max(x.c, y.c);
ans.best = max({x.best, y.best, x.ab + y.c});
return ans;
}
};
int trsz;
vector<Node> st;
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... |