最小树形图+输出方案
输出方案的话记录一下哪些边 然后记得最后拆环要倒着拆就行了
View Code
CF240E Road Repairs
原文:https://www.cnblogs.com/hanyuweining/p/10366723.html