- 博客(5)
- 收藏
- 关注
原创 【POJ】3281网络流 构造源点汇点 好题
Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no others. Farmer John has cooked fabulous meals for his cows, but he forgot to check his men...
2019-10-24 23:32:33
251
原创 【POJ 1273】Drainage Ditches网络流最大流模板
Every time it rains on Farmer John’s fields, a pond forms over Bessie’s favorite clover patch. This means that the clover is covered by water for awhile and takes quite a long time to regrow. Thus, Fa...
2019-10-24 21:47:49
171
原创 【HDU 1686】Oulipo KMP模板
#include <iostream> #include <cstring> #include <cstdio> using namespace std; char a[1000005] ,b[10005];//其中a为文本串,b为模式串; int nxt[10005],n,m;//n代表a的长度,m代表b的长度 void get_nxt() { int i...
2019-10-23 22:12:33
116
原创 HDU 2063 过山车
二分图的最大匹配(匈牙利算法)模板题,可参考博客 二分图的最大匹配算法 趣写算法系列之–匈牙利算法 #include <iostream> #include <cstdio> #include <cstring> using namespace std; int G[1005][1005]; int m,k,n; bool used[1005]; int ans...
2019-10-17 22:34:16
87
原创 POJ 1094拓补排序
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入 欢迎使用Ma...
2019-10-16 00:16:37
104
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人