蒟蒻63分求助

P3366 【模板】最小生成树

@[clancysam](/user/715233) 存边的数组开小了;;
by EastPorridge @ 2022-08-23 13:27:12


@[EastPorridge](https://www.luogu.com.cn/user/230865)前面的问题解决了! 蒟蒻不知道为什么#13爆WA耶?
by Dino_chx @ 2022-08-23 13:34:18


输出 $ans$ 的条件是 $cnt=n-1$ 而不是 $ans>0$
by TheSky233 @ 2022-08-23 13:35:00


AC了,谢谢 此贴完结
by Dino_chx @ 2022-08-23 13:55:13


|