10pts 求调(悬1关)

P2700 逐个击破

你好像是用的树的思想来做。 ### 但是题目只说了N个点、N-1条边 有没有一种可能是一个**非连通图**? 详见:https://www.luogu.com.cn/discuss/657866
by streetlampflower @ 2023-12-11 20:41:26


改一下试试看。
by streetlampflower @ 2023-12-11 20:43:08


@[dongrunxuan](/user/959582) 有没有一种可能,“城市的编号从 0 开始”。
by zjpwdyf @ 2023-12-11 20:46:30


|