一条代码会造成结果不同

P3366 【模板】最小生成树

那条代码为**dist[t]=0**
by AnotherDay @ 2022-03-23 20:00:12


@[AnotherDay](/user/576674) ?我这边测出来你没加那句话也过了啊?
by cinout001_Wii @ 2022-03-23 20:31:49


@[cinout001_Wii](/user/138492) 我天为啥啊,我改了好长时间啊wc 我试了一下还真是!
by AnotherDay @ 2022-03-23 20:48:16


@[AnotherDay](/user/576674) 好像是O2之后挂掉了 你要不查查自己代码有没有 [Undefined Behavior](https://studyingfather.blog.luogu.org/undefined-behavior)?
by cinout001_Wii @ 2022-03-23 20:52:38


@[cinout001_Wii](/user/138492) 学到了,学到了。 非常感谢
by AnotherDay @ 2022-03-23 21:50:15


|