CF240E Road Repairs

最小树形图+输出方案

输出方案的话记录一下哪些边 然后记得最后拆环要倒着拆就行了

View Code

原文地址:https://www.cnblogs.com/hanyuweining/p/10366723.html