Liveddd's Blog

愛にできることはまだあるかい

对性质的观察,有点智慧。

阅读全文 »

有比较不错的树上差分 $\mathcal O(n)$ 做法,也可以使用点分治 $\mathcal O(n\log n)$ 解决。

阅读全文 »