# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1117326 | pacman | Triple Jump (JOI19_jumps) | C++14 | 1680 ms | 154952 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 int long long int
using namespace std;
const int maxn = 1e6 + 100;
int n ,Q ,a[maxn], ans[maxn] ,sz = 1;
vector<pair<int ,int>> q[maxn];
vector<int> baze[maxn];
struct segment_tree{
int seg[maxn * 2], lazy[maxn * 2], maxi[maxn * 2];
segment_tree(){
for(int i = 0; i < maxn * 2; i++){
seg[i] = 0 ,lazy[i] = 0, maxi[i] = 0;
}
}
void build_max(){
for(int i = sz - 1; i >= 0 ;i--){
maxi[i] = max(maxi[2 * i], maxi[2 * i + 1]);
}
}
void push(int v, int L, int R){
if(L == R) return;
lazy[v * 2] = max(lazy[v * 2], lazy[v]);
# | 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... |