# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
299654 | pit4h | Triple Jump (JOI19_jumps) | C++14 | 1742 ms | 90452 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 st first
#define nd second
#define mp make_pair
#define pb push_back
#ifndef LOCAL
#define cerr if(0)cerr
#endif
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using vi = vector<int>;
const int N = 5e5+1;
int n, q, ans[N];
vector<pii> queries[N], vec[N];
struct Segtree {
vector<int> node, push, max_in_range;
int base;
void init(int sz, vector<int> leaves) {
base = 1;
while(base < sz) base *= 2;
node.resize(2*base+1);
push.resize(2*base+1);
max_in_range.resize(2*base+1);
for(int i=0; i<(int)leaves.size(); ++i) {
max_in_range[i+base] = leaves[i];
}
for(int i=base-1; i>=1; --i) {
# | 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... |