摘要:
本来求边数又建了个图跑流,然后看题解发现直接流量置为A*w+1(A为足够大的数) 感觉很强 #include<bits/stdc++.h> using namespace std; #define ll long long const int A=1e5; const ll inf=1e18; in 阅读全文
posted @ 2024-07-23 17:45
Kent530
阅读(9)
评论(0)
推荐(0)
摘要:
一眼匈牙利,没有紫啊 #include<bits/stdc++.h> using namespace std; #define pb push_back int n,m,res,a[205][205],p[40005]; int id1[205][205],fr1[40005],cnt1,id2[2 阅读全文
posted @ 2024-07-23 16:50
Kent530
阅读(13)
评论(0)
推荐(0)
摘要:
其实想到方法了,但是以为复杂度炸了,好蠢 #include<bits/stdc++.h> using namespace std; #define pb push_back int n,m,rk[30005],f[30005],g[30005],dis[30005],ans; bool vis[30 阅读全文
posted @ 2024-07-23 13:08
Kent530
阅读(15)
评论(0)
推荐(0)
浙公网安备 33010602011771号