如果你14pts且使用Kruskal

P3366 【模板】最小生成树

70CentsApple @ 2023-10-19 18:47:20

Kruskal的并查集完之后之后记得

if(find(e.x) == find(e.y)) continue;


by sugarrrr @ 2023-10-19 20:33:27

woc铃兰!


|