摘要: 1.将序列中连续的相同的元素整合,用一个三元组(L,R,val)来表示 2.用set维护 struct node { int l,r;//左右端点 mutable LL v;//这个区间内的值是多少 node(int L,int R=-1,LL V=0):l(L),r(R),v(V){} bool 阅读全文
posted @ 2024-07-09 10:43 MENDAXZ 阅读(7) 评论(0) 推荐(0) 编辑