摘要:
[AGC029F] Construction of a tree [AGC030C] Coloring Torus [AGC030D] Inversion Sum [AGC030E] Less than 3 [AGC030F] Permutation and Minimum [AGC031D] A 阅读全文
摘要:
CF504E Misha and LCP on Tree 对于序列上的问题,可以考虑哈希+二分,对于树上的问题,只需使用树剖将一条路径分成序列上的 $O(\log n)$ 个区间即可,时间复杂度 $o(n\log n)$。 CF505E Mr. Kitayuta vs. Bamboos 二分答案,考 阅读全文