投稿

Codeforces 1009F. Dominant Indices (DSU on Tree)

Codeforces 1051F. The Shortest Statement (Shortest Path + LCA)

可持久化并查集(Persistent Union-Find)