摘要: 题目:链接 题解:链接 Candle Box Gym - 101174C 整场就写了这一道题还手残交错题WA两发... 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() { 5 int d, r, t; 6 scanf( 阅读全文
posted @ 2017-10-06 22:28 yijiull 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 网络流五·最大权闭合子图 HihoCoder - 1398 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxv = 410; 4 const int maxe = 40210; 5 const int inf = 0x 阅读全文
posted @ 2017-10-06 16:39 yijiull 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 网络流三·二分图多重匹配 HihoCoder - 1393 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxv = 210; 4 const int maxe = 10210; 5 const int inf = 0x 阅读全文
posted @ 2017-10-06 10:36 yijiull 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 网络流二·最大流最小割定理 HihoCoder - 1378 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxv = 1010; 4 const int maxe = 20010; 5 const int inf = 阅读全文
posted @ 2017-10-06 10:21 yijiull 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 网络流四·最小路径覆盖 HihoCoder - 1394 每个点拆成两个点限流为1. 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxv = 1010; 4 const int maxe = 20010; 5 cons 阅读全文
posted @ 2017-10-06 09:56 yijiull 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 飞行员配对(二分图最大匹配) 51Nod - 2006 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define CLR(m, a) memset(m, a, sizeof(m)) 4 5 const int maxn = 110; 6 阅读全文
posted @ 2017-10-06 09:38 yijiull 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 开心的小Q 51Nod - 1742 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define ll long long 4 const ll maxn = 1e5+10; 5 ll mu[maxn], pri[maxn]; 6 ll c 阅读全文
posted @ 2017-10-06 00:47 yijiull 阅读(137) 评论(0) 推荐(0) 编辑