建边建错了。
```cpp
edge[cnt].to=from;
```
应该改为:
```
edge[cnt].to=to;
```
by technopolis_2085 @ 2023-06-23 11:40:34
试过了,改完了就可以AC。
by technopolis_2085 @ 2023-06-23 11:42:27
@[past_tense](/user/546301) 感谢大佬 关注已点
by Anatomix @ 2023-06-23 11:44:27