随笔分类 -  01.图论 - (4)网络流

摘要:题目链接:https://www.luogu.org/problemnew/show/P2766 题解(大量参考https://blog.csdn.net/ZscDst/article/details/82423342): 第一问,可以用DP求解,用 f[i] 表示以 a[i] 为结尾的最长 阅读全文
posted @ 2019-04-15 16:36 Dilthey 阅读(263) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://codeforces.com/gym/101981/attachments There are n heroes and m monsters living in an island. The monsters became very vicious these days,s 阅读全文
posted @ 2018-11-18 21:43 Dilthey 阅读(922) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=1001 Description现在小朋友们最喜欢的"喜羊羊与灰太狼",话说灰太狼抓羊不到,但抓兔子还是比较在行的,而且现在的兔子还比较笨,它们只有两个窝,现在你做为狼王,面对下面这样一个网格 阅读全文
posted @ 2018-10-21 10:44 Dilthey 阅读(256) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.nowcoder.com/acm/contest/207/G 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5988 时间限制:C/C++ 2秒,其他语言4秒空间限制:C/C++ 262144K,其他语言524288K 阅读全文
posted @ 2018-10-07 20:59 Dilthey 阅读(314) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.nowcoder.com/acm/contest/206/A 题目描述 恬恬的生日临近了。宇扬给她准备了一个蛋糕。正如往常一样,宇扬在蛋糕上插了n支蜡烛,并把蛋糕分为m个区域。因为某种原因,他必须把第i根蜡烛插在第ai个区域或第bi个区域。区域之间是不相交的。宇扬在 阅读全文
posted @ 2018-10-07 08:09 Dilthey 阅读(170) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://nanti.jisuanke.com/t/31447 "Oh, There is a bipartite graph.""Make it Fantastic." X wants to check whether a bipartite graph is a fantasti 阅读全文
posted @ 2018-09-12 22:54 Dilthey 阅读(180) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2314 The terrorist group leaded by a well known international terrorist Ben Bladen i 阅读全文
posted @ 2018-09-12 21:35 Dilthey 阅读(201) 评论(0) 推荐(0) 编辑
摘要:1、网络 网络,一种特殊的有向图,一个有向带权图 G=(V,E),指定两个节点 stst),分别称为源点和汇点,每条边的权值称为容量 c,特别地,若边 u,vE,则 $c\left 阅读全文
posted @ 2018-09-12 20:29 Dilthey 阅读(353) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://www.nowcoder.com/acm/contest/143/E 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/ 阅读全文
posted @ 2018-08-04 21:35 Dilthey 阅读(526) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://cn.vjudge.net/problem/HDU-1565 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description 给你一个 阅读全文
posted @ 2017-10-03 00:01 Dilthey 阅读(448) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=2987 Time Limit: 5000MS Memory Limit: 131072K Description You’ve finally got mad at “the world’s most stupid” employees 阅读全文
posted @ 2017-09-20 22:31 Dilthey 阅读(554) 评论(0) 推荐(0) 编辑
摘要:题目链接:https://cn.vjudge.net/problem/URAL-1277 The Galaxy Police (Galaxpol) found out that a notorious gang of thieves has plans for stealing an extreme 阅读全文
posted @ 2017-08-30 15:17 Dilthey 阅读(184) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hit.edu.cn/hoj/problem/view?id=2739 Time limit : 1 sec Memory limit : 64 M A Chinese postman is assigned to a small town in China to d 阅读全文
posted @ 2017-08-25 01:07 Dilthey 阅读(570) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hit.edu.cn/hoj/problem/view?id=2715 Time limit : 5 sec Memory limit : 64 M Zhouguyue is a "驴友" and nowadays he likes traveling on an N 阅读全文
posted @ 2017-08-24 09:38 Dilthey 阅读(222) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://poj.org/problem?id=2195 Time Limit: 1000MS Memory Limit: 65536K Description On a grid map there are n little men and n houses. In each uni 阅读全文
posted @ 2017-08-23 13:21 Dilthey 阅读(311) 评论(0) 推荐(0) 编辑
摘要:之前在网上搜了一个下午没搜到这道题的题解,然后同时又对着叉姐写的两行字题解看了一个下午; 虽然基本上已经知道了这题的思路,但愣是因为自己代码实现起来太繁复,外加不确定正确性,没敢码…… 但是一道题肝了一下午没肝出来,就要放弃的话,怕是太扎心了,忍不住就跑去ICPCCamp.Post问叉姐了(http 阅读全文
posted @ 2017-08-21 18:44 Dilthey 阅读(522) 评论(0) 推荐(0) 编辑
摘要:嗯,这是关于最大点权独立集与最小点权覆盖集的姿势,很简单对吧,然后开始看题。 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1569 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536 阅读全文
posted @ 2017-08-20 21:37 Dilthey 阅读(995) 评论(2) 推荐(0) 编辑
摘要:首先是当年stoer和wagner两位大佬发表的关于这个算法的论文:A Simple Min-Cut Algorithm 直接上算法部分: 分割线 begin 在这整篇论文中,我们假设一个普通无向图G=(V,E),其中每条边e都有一个正实数权值w(e)。 如果我们知道:怎样找到两个节点s,t,以及怎 阅读全文
posted @ 2017-08-20 14:17 Dilthey 阅读(1679) 评论(0) 推荐(0) 编辑
摘要:妖怪题目,做到现在:2017/8/19 - 1:41…… 不过想想还是值得的,至少邻接矩阵型的Dinic算法模板get√ 题目链接:http://poj.org/problem?id=1815 Time Limit: 2000MS Memory Limit: 20000K Description I 阅读全文
posted @ 2017-08-19 01:53 Dilthey 阅读(426) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://www.spoj.com/problems/IM/en/ Time limit:491 ms Memory limit:1572864 kB Code length Limit:50000 B Jedi knights, Qui-Gon Jinn and his young 阅读全文
posted @ 2017-08-18 14:55 Dilthey 阅读(242) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示