对了,我现在这个版本开的都是10005,但其实题目理论只需要1005就可以了,但10005还是RE了qwq
by MVP_Harry @ 2020-05-22 07:32:37
@[MVP_Harry](/user/306962)
bfs()里那个`rep(i, 0, 4)`应该是`rep(i, 0, 3)`
by iMya_nlgau @ 2020-05-22 08:07:51
@[Sapphire6575737973](/user/176569) 有道理,我平时一般用rep(i, 1, 4)的qwq
by MVP_Harry @ 2020-05-22 08:42:04
不够现在全WA了哈哈哈
by MVP_Harry @ 2020-05-22 08:42:22
`ans = temp.dis; `改成 `ans=min(ans,temp.dis)`,然后 `ans` 赋初值 `inf` 试试
by JohnVictor @ 2020-05-22 08:45:33
@[JohnVictor](/user/254752) bfs为什么需要这个啊?
by MVP_Harry @ 2020-05-22 09:10:25
@[JohnVictor](/user/254752) 而且还是全WA,我怀疑我BFS写错了。。。
by MVP_Harry @ 2020-05-22 09:13:37
卧槽我知道怎么错了,多输出了一个n
by MVP_Harry @ 2020-05-22 09:28:20
emmmmmm
by JohnVictor @ 2020-05-22 10:04:35