Rtcya @ 2022-07-27 11:27:07
WA了2次才过,总耗时1h,人已经写麻了
by TernaryTree @ 2022-07-27 11:28:04
那是你太菜了
by 1437_星尘 @ 2022-07-27 11:28:36
@ternary_tree
好骂
by fjy666 @ 2022-07-27 11:29:24
那是你太菜了
by Rtcya @ 2022-07-27 11:30:01
我太菜了,不会读入
by Asimplename @ 2022-07-27 11:30:26
最小生成树模板值个黄?
by TernaryTree @ 2022-07-27 11:31:28
@zchqwq 次小生成树黄还差不多/hsh
by Rtcya @ 2022-07-27 11:31:49
前后唯一改变:
前:
for (int i = 1; i <= m; i++)
cin >> G[i].a >> G[i].b >> G[i].val;
后:
for (int i = 0; i < m; i++)
cin >> G[i].a >> G[i].b >> G[i].val;
:((((((
by Electro_Master @ 2022-07-27 11:31:51
只是模板而已,橙-黄吧。
by q779 @ 2022-07-27 11:33:51
az,没必要骂楼主吧
by Rtcya @ 2022-07-27 11:34:12
@ternary_tree 可是我感觉dij的模板都比这难写