我们有时候需要做 “区间染色,全局查询某颜色区间内,该颜色点的数量之和” 这样的问题

![[Pasted image 20250216163531.png]]![[Pasted image 20250216163557.png]]

例题:# P6783 Ynoi2008 rrusq