WA on #13

P3366 【模板】最小生成树

将判断输出orz的条件改为最小生成树的边数是否等于节点数减1,是输出ans,不是输出orz
by gotocspandbetter @ 2024-02-19 22:47:44


@[huangshuyuan2010](/user/1104901)
by gotocspandbetter @ 2024-02-19 22:48:07


一张图要连通,则至少需要n-1条边
by gotocspandbetter @ 2024-02-19 22:51:29


@[gotocspandbetter](/user/1041003) 谢谢大神
by hsy20101122 @ 2024-02-20 13:39:20


|