# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
520899 | ymm | Triple Jump (JOI19_jumps) | C++17 | 901 ms | 87840 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.
///
/// Oh? You're approaching me?
///
#include <bits/stdc++.h>
#define Loop(x,l,r) for(ll x = ll(l); x < ll(r); ++x)
#define LoopR(x,l,r) for(ll x = ll(r)-1; x >= ll(l); --x)
#define Kill(x) exit((cout << (x) << '\n', 0))
typedef long long ll;
typedef std::pair<int,int> pii;
typedef std::pair<ll,ll> pll;
using namespace std;
const int N = 500010;
const int inf = 5e8;
int arr[N];
int n, q;
namespace seg{
int lzy[N<<2], mx[N<<2], mxc[N<<2];
void tag(int i, int x){
mx[i] = max(mx[i], mxc[i]+x);
lzy[i] = max(lzy[i], x);
}
void ppg(int i){
if(lzy[i]>-inf){
tag(2*i+1, lzy[i]);
tag(2*i+2, lzy[i]);
lzy[i]=-inf;
}
# | 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... |