题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1001 平面图最小割可以转化成最短路问题: 建图时看清楚题目的 input ... 代码如下: #include<cstdio> #include<cstring> #include<algorithm> #include<queue> using namespace std; typedef long long ll; ,xm=8e6+; int n,…
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1001 #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #define ll long long using namespace std; ,M=6e6+; int n,m,hd[N],xnt,to[M],nxt[M],w[M]; ll dis[N];bool…
[题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=1001 [算法] 最小割 [代码] #include<bits/stdc++.h> using namespace std; #define MAXN 1010 const long long inf = 1e18; struct edge { int to; long long w; int nxt; } e[MAXN * MAXN * ]; int i,j,n,m,tot,S,…