```cpp
bool operator<(const Node & a) const {
return d < a.d;
}
```
写反了,改成:
```cpp
bool operator<(const Node & a) const {
return a.d < d;
}
```
就 AC 了
by sunningyi @ 2024-02-18 22:05:06
另外这个题的正解是建返图,可以看看题解
by sunningyi @ 2024-02-18 22:07:04
@[sunningyi](/user/816689) 谢谢,不过已经关注了。。。
by small_Dongpo @ 2024-02-26 20:32:31
@[sunningyi](/user/816689) 你有小号吗,我可以关注一下你小号
by small_Dongpo @ 2024-02-26 20:33:10
@[small_Dongpo](/user/741732) 没有小号 qwq,都是互相帮忙,不用再关注了
by sunningyi @ 2024-02-26 21:16:30