Submission #1038087

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10380872024-07-29 12:52:19SoulKnightStone Arranging 2 (JOI23_ho_t1)C++17
0 / 100
3 ms11356 KiB
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define ln '\n'
const int N = 2e5 + 5;
int n, a[N], glit = 1;
vector<int> vec, where[N];
#define lc (v << 1)
#define rc ((v << 1) + 1)
struct node{
int color;
int tm = N + 5;
} seg[4*N];
void pushdown(int v){
if (!seg[v].color) return;
seg[rc].color = (seg[rc].tm > seg[v].tm? seg[v].color: seg[rc].color);
seg[rc].tm = min(seg[rc].tm, seg[v].tm);
seg[lc].color = (seg[lc].tm > seg[v].tm? seg[v].color: seg[lc].color);
seg[lc].tm = min(seg[lc].tm, seg[v].tm);
seg[v].color = 0;
seg[v].tm = N + 5;
}
void upd(int v, int tl, int tr, int l, int r, int color){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...