Submission #1117326

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
11173262024-11-23 10:10:04pacmanTriple Jump (JOI19_jumps)C++14
100 / 100
1680 ms154952 KiB
#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]);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...