链接如下: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1599 典型的最大流,直接套用最大流Dicni算法模板即可,代码如下: