警示后人,有重边!!!

P3366 【模板】最小生成树

LuckiestShawn @ 2023-03-26 14:54:56

RT


by gznpp @ 2023-03-26 14:57:36

鹅有重边也无所谓吧,kruscal 和 prim 都能解决啊


by codejiahui @ 2023-03-26 15:24:34

@itshawn 无所谓吧


by nachuan37429 @ 2023-04-07 12:33:03

谢谢,我拿邻接矩阵想试试prim结果全wa,原来在这


|