板子题,FHQ-treap秒杀 只要将懒标记定义为翻转所有数即可 #include<bits/stdc++.h> using namespace std; using ll = long long ; const int M=2e5+10; ll cnt,x,y,z,root; struct FHQ_Treap {ll x,ls,rs,sz,lz,key;}s[M]; inline ll NewNode(ll v) { s[++cnt]=(FHQ_Treap){v,0,0,1,0,rand()}; return cnt; } inline void push_up(...