把
```cpp
if (cnt > ans)
```
改成了
```cpp
if (cnt + ma > ans)
```
就拥有了[红色的100](https://www.luogu.com.cn/record/136223349)
by Y_QWQ_Y @ 2023-11-21 19:34:57
@[Y_QWQ_Y](/user/677091) 如果构造一个这样的图:
![](https://cdn.luogu.com.cn/upload/image_hosting/um473h5i.png)
并且每条边边权差不多,dfs 很容易就会卡满。
by Luzhuoyuan @ 2023-11-21 19:50:54