
图论_最大流
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
HDU3549--最大流水题
DescriptionNetwork 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. InputThe first line原创 2013-02-03 22:52:07 · 482 阅读 · 0 评论 -
POJ2135--Farm Tour(最小费用最大流)
DescriptionWhen FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of which contains his house and the Nth of w原创 2014-04-12 01:58:54 · 959 阅读 · 0 评论 -
POJ2987--最大权闭合图
DescriptionYou’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原创 2013-08-11 13:40:06 · 708 阅读 · 0 评论 -
POJ1087--A Plug for UNIX
DescriptionYou are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international mandate to make the free flow of inf原创 2013-07-31 19:44:07 · 864 阅读 · 0 评论 -
POJ2289--Jamie's Contact Groups
DescriptionJamie is a very popular girl and has quite a lot of friends, so she always keeps a very long contact list in her cell phone. The contact list has become so long that it often takes a long原创 2013-07-31 20:51:51 · 1101 阅读 · 0 评论 -
POJ3281--Dining
DescriptionCows 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原创 2013-07-31 16:13:25 · 646 阅读 · 0 评论 -
POJ1966--Cable TV Network
DescriptionThe interconnection of the relays in a cable TV network is bi-directional. The network is connected if there is at least one interconnection path between each pair of relays present in原创 2013-07-31 15:48:03 · 898 阅读 · 0 评论 -
POJ3155--Hard Life
DescriptionJohn 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 ow原创 2013-07-31 11:50:12 · 1145 阅读 · 0 评论 -
POJ2112--Optimal Milking
DescriptionFJ has moved his K (1 <= K <= 30) milking machines out into the cow pastures among the C (1 <= C <= 200) cows. A set of paths of various lengths runs among the cows and the milking mach原创 2013-07-31 13:38:07 · 850 阅读 · 0 评论 -
POJ2195--Going Home
DescriptionOn a grid map there are n little men and n houses. In each unit time, every little man can move one unit step, either horizontally, or vertically, to an adjacent point. For each little ma原创 2013-05-23 12:15:18 · 700 阅读 · 0 评论 -
POJ2516--Minimum Cost
DescriptionDearboy, a goods victualer, now comes to a big problem, and he needs your help. In his sale area there are N shopkeepers (marked from 1 to N) which stocks goods from him.Dearboy has M sup原创 2013-05-23 10:21:25 · 730 阅读 · 0 评论 -
Control
Description You, the head of Department of Security, recently received a top-secret information that a group of terrorists is planning to transport some WMD 1 from one city (the source) to anothe原创 2013-05-17 15:44:36 · 765 阅读 · 0 评论 -
HDU4292--Food
Description You, a part-time dining service worker in your college’s dining hall, are now confused with a new problem: serve as many people as possible. The issue comes up as people in your co原创 2013-05-17 15:46:10 · 753 阅读 · 0 评论 -
HDU1532--Drainage Ditches
Problem DescriptionEvery 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 tim原创 2013-05-03 19:53:03 · 700 阅读 · 0 评论 -
POJ3436--ACM Computer Factory--拆点EK算法求最大流
DescriptionAs you know, all the computers used for ACM contests must be identical, so the participants compete on equal terms. That is why all these computers are historically produced at the same原创 2013-02-06 00:58:39 · 607 阅读 · 0 评论 -
POJ1459--Power Network--最大流增光路算法
DescriptionA power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) >= 0 of power, may produce a原创 2013-02-06 11:48:20 · 548 阅读 · 0 评论 -
大视野1458--士兵占领(网络流)
Description有一个M * N的棋盘,有的格子是障碍。现在你要选择一些格子来放置一些士兵,一个格子里最多可以放置一个士兵,障碍格里不能放置士兵。我们称这些士兵占领了整个棋盘当满足第i行至少放置了Li个士兵, 第j列至少放置了Cj个士兵。现在你的任务是要求使用最少个数的士兵来占领整个棋盘。Input第一行两个数M, N, K分别表示棋盘的行数,列数以及士兵的个数。 第二行原创 2014-07-17 16:45:22 · 596 阅读 · 0 评论