最大流/ISAP 话说ISAP是真快...(大多数情况)吊打dinic,而且还好写... 大概思路就是: 在dinic的基础上, 动态修改层数, 如果终点层数 \(>\) 点数, break. 暂时并不知道isap有没有可能被卡. 应该不会 const int ninf=(int)1e9+500,psz=(int)450,esz=(int)1e5+50; //network flow struct te{int t,pr,fl;}edge[esz*2]; int hd[psz],pe=1,np,…