摘要:
https://www.luogu.org/problemnew/show/P4452 又一道看题解的费用流。 注意时间也影响节点,像题解那样建边就少很多了。 阅读全文
摘要:
#include using namespace std; const int MAXN=10000; const int MAXM=100000; const int INF=0x3f3f3f3f; struct Edge{ int to,next,cap,flow,cost; }edge[MAXM]; int head[MAXN],tol; int pre[MAXN],dis[MA... 阅读全文