借个楼 您不介意吧
https://www.luogu.com.cn/discuss/663904
by Siegerkranz_2735 @ 2023-08-17 22:15:57
@[xibaohe](/user/601747)
~~注意细节啊!!!~~
```cpp
id[0][1]=cnt;
```
此时cnt=0,即初始点为0
所以应该改成
```cpp
spfa(0);
```
by Hilte @ 2023-08-17 22:23:13
@[Hilte](/user/420950) 哇感谢,orz,已关
by xibaohe_light @ 2023-08-17 22:27:01
@[Hilte](/user/420950) 真的吗
by xibaohe_light @ 2023-08-17 22:30:02
@[xibaohe](/user/601747) 可以试试,我就没用过
by Hilte @ 2023-08-17 22:31:38