第三题dfs爆搜超时了,感觉要么贪心要么网络流,如果机试靠网络流就太勾了。求大佬思路。 自己的爆搜代码 https://gist.github.com/baolintian/17ddc4231aee764b8ca8af60540c5dee