这是我自己出的题
https://www.luogu.com.cn/problem/U472152
标程打了一个珂朵莉树加暴力重构。
复杂度大概是 O(n(n+m))O(n(n+m))O(n(n+m))。
但是不开o2就特别慢。
想求一个线段树写法。
玄关、。