随笔分类 - 图论-网络流
摘要:题目链接:https://www.luogu.com.cn/problem/P4014 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=211,M=4e4+11,inf=1<<29; 4 int n,a[N][N],st,
阅读全文
摘要:题目链接:https://www.luogu.com.cn/problem/P4016 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=211,M=4011,inf=1<<29; 4 int n,m,st,ed,a[N],
阅读全文
摘要:题目链接:https://www.luogu.com.cn/problem/P2761 1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 const int N=2e6+11; 5 const ll i
阅读全文
摘要:题目源自洛谷,题目顺序按洛谷上难度由低到高排序,4蓝19紫1黑 Update 21.8.18:坑太深,慢慢填 1.孤岛营救问题:https://www.cnblogs.com/shangguanshufang/p/wang_luo_liu_24_ti_1_gu_dao_ying_jiu_wen_ti
阅读全文
摘要:题目链接:https://www.luogu.com.cn/problem/P2756 1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 const int N=211,M=40011,inf=1<<2
阅读全文
摘要:题目链接:https://www.luogu.com.cn/problem/P4011 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=21,M=1<<15; 4 const int dx[11]={1,-1,0,0},d
阅读全文

浙公网安备 33010602011771号