
网络流
文章平均质量分 83
henuzxy
已经成为刷题过千的男人,即将成为cf 1900分的男人。
展开
-
HDU 6118 度度熊的交易计划 (最小费用流变形)
Problem Description 度度熊参与了喵哈哈村的商业大会,但是这次商业大会遇到了一个难题:喵哈哈村以及周围的村庄可以看做是一共由n个片区,m条公路组成的地区。由于生产能力的区别,第i个片区能够花费a[i]元生产1个商品,但是最多生产b[i]个。同样的,由于每个片区的购买能力的区别,第i个片区也能够以c[i]的价格出售最多d[i]个物品。由于这些因素,度度熊觉得只有合理的调动物品,才能原创 2017-09-25 23:30:02 · 344 阅读 · 0 评论 -
HDU 6201 transaction transaction transaction &&沈阳网络赛1008
http://blog.youkuaiyun.com/a15110103117/article/details/77925858 参考了这篇博客 transaction transaction transactionTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 132768/132768 K (Java/Others) Total Subm原创 2017-09-10 23:48:49 · 520 阅读 · 0 评论 -
BZOJ 1391: [Ceoi2008]order (最大权闭合图)
时间限制: 10 Sec 内存限制: 64 MB 提交: 2244 解决: 669 [提交][][] 题目描述 有N个工作,M种机器,每种机器你可以租或者买过来. 每个工作包括若干道工序,每道工序需要某种机器来完成,你可以通过购买或租用机器来完成。 现在给出这些参数,求最大利润 输入 第一行给出 N,M(1<=N<=1200,1<=M<=1200) 下面将有...原创 2018-08-14 17:58:57 · 187 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第五场)E room 带权二部图匹配问题(费用流解决)
链接:https://www.nowcoder.com/acm/contest/143/E 来源:牛客网时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 Nowcoder University has 4n students and n dormitories ( Four ...原创 2018-08-03 14:14:38 · 229 阅读 · 0 评论 -
POJ 2987 Firing (网路流之最大权闭合图)
You’ve finally got mad at “the world’s most stupid” employees of yours and decided to do some firings. You’re now simply too mad to give response to questions like “Don’t you think it is an even more ...原创 2018-08-14 16:39:39 · 283 阅读 · 0 评论 -
HDU 3549 Flow Problem(网络流之最大流模板题)
传送门Problem Description Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for the weighted directed graph.Input The first line of inpu原创 2017-09-12 22:28:12 · 397 阅读 · 0 评论 -
HDU 6214 Smallest Minimum Cut (最小割最小割边)(两种算法的分析)
Problem Description Consider a network G=(V,E) with source s and sink t. An s-t cut is a partition of nodes set V into two parts such that s and t belong to different parts. The cut set is the subset原创 2017-09-17 20:29:14 · 1683 阅读 · 5 评论 -
POJ 3469 Dual Core CPU(巧妙转化最大流)
DescriptionAs more and more computers are equipped with dual core CPU, SetagLilb, the Chief Technology Officer of TinySoft Corporation, decided to update their famous product - SWODNIW.The routine cons原创 2017-09-27 13:34:37 · 470 阅读 · 0 评论 -
POJ 3281 Dining(巧妙转化为最大流)
Dining Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 19491 Accepted: 8679 DescriptionCows are such finicky eaters. Each cow has a preference for certain foods and drinks, an原创 2017-09-26 20:02:46 · 294 阅读 · 0 评论 -
POJ 3155 Hard Life 最大密度子图
John is a Chief Executive Officer at a privately owned medium size company. The owner of the company has decided to make his son Scott a manager in the company. John fears that the owner will ultimate...原创 2018-08-18 18:22:37 · 261 阅读 · 0 评论