摘要:
【算法】网络流-最小费用最大流(费用流) 【题解】与方格取数2类似 在S后添加辅助点S_,限流k 每条边不能重复走,限流1 #include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int in 阅读全文
摘要:
【算法】可并堆(左偏树) #include<cstdio> #include<algorithm> using namespace std; const int maxn=1000010; int l[maxn],r[maxn],fa[maxn],d[maxn],a[maxn],n,m; bool 阅读全文