1 2 3 4
摘要: 这题据说是点分治,但是看到有大佬说dus on tree可以写出来,就试了试。。。 https://www.luogu.com.cn/problem/P4149 这个题让我再一次认识了树上启发式合并,谢谢,具体看代码就好 #include<cstdio> #include<iostream> #in 阅读全文
posted @ 2020-10-09 15:36 Lesning 阅读(263) 评论(0) 推荐(0)