专题四 最短路练习
[kuangbin带你飞] 专题四 最短路练习
白雪黑夜我不停歇
这个作者很懒,什么都没留下…
展开
-
POJ 3169 Layout
题目链接DescriptionLike everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1…N standing along a straight line waiting for feed. The cows are standing in the same order as they are nu原创 2020-07-11 18:09:29 · 154 阅读 · 0 评论 -
HDU 4370 0 or 1
题目链接Problem DescriptionGiven a nn matrix Cij (1<=i,j<=n),We want to find a nn matrix Xij (1<=i,j<=n),which is 0 or 1.Besides,Xij meets the following conditions:1.X12+X13+…X1n=12.X1n+X2n+…Xn-1n=13.for each i (1<i<n), satisfies ∑Xki (原创 2020-07-11 14:06:30 · 132 阅读 · 0 评论 -
HDU 3416 Marriage Match IV
题目链接Problem DescriptionDo not sincere non-interference。Like that show, now starvae also take part in a show, but it take place between city A and B. Starvae is in city A and girls are in city B. Every time starvae can get to city B and make a data with原创 2020-07-10 19:03:39 · 154 阅读 · 0 评论 -
HDU 4725 The Shortest Path in Nya Graph
题目链接Problem DescriptionThis is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco el algoritmo. If you do not understand a word of this paragraph, just move on.The Nya graph is an un原创 2020-07-10 15:02:13 · 176 阅读 · 0 评论 -
LightOJ 1074 Extended Traffic
题目链接DescriptionDhaka city is getting crowded and noisy day by day. Certain roads always remain blocked in congestion. In order to convince people avoid shortest routes, and hence the crowded roads, to reach destination, the city authority has made a new原创 2020-07-09 20:11:30 · 182 阅读 · 0 评论 -
POJ 1847 Tram
DescriptionTram network in Zagreb consists of a number of intersections and rails connecting some of them. In every intersection there is a switch pointing to the one of the rails going out of the intersection. When the tram enters the intersection it can原创 2020-07-09 16:54:28 · 113 阅读 · 0 评论 -
POJ 1602 昂贵的聘礼
Description年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。“探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,或者替他弄来其他的东西,他可以降低价格。探险家于是又跑到其他地方,其他人也提出了类似的要求,或者直接用金币换,或原创 2020-07-08 20:22:33 · 170 阅读 · 0 评论 -
POJ 2505 Subway
DescriptionYou have just moved from a quiet Waterloo neighbourhood to a big, noisy city. Instead of getting to ride your bike to school every day, you now get to walk and take the subway. Because you don’t want to be late for class, you want to know how l原创 2020-07-08 14:09:11 · 194 阅读 · 0 评论 -
POJ 3159 Candies
这题涉及到一个差分约束系统的原理,下面是一篇我觉得比较好的博客差分约束系统DescriptionDuring the kindergarten days, flymouse was the monitor of his class. Occasionally the head-teacher brought the kids of flymouse’s class a large bag of candies and had flymouse distribute them. All the kids原创 2020-07-07 19:54:00 · 113 阅读 · 0 评论 -
POJ 1511 Invitation Cards
DescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique Comedies. They have printed invitation cards with all the n原创 2020-07-07 14:36:07 · 168 阅读 · 0 评论 -
POJ 2240 Arbitrage
题目链接DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dolla...原创 2020-04-19 15:09:08 · 159 阅读 · 0 评论 -
POJ 3360 Cow Contest
DescriptionN (1 ≤ N ≤ 100) cows, conveniently numbered 1…N, are participating in a programming contest. As we all know, some cows code better than others. Each cow has a certain constant skill rating...原创 2020-04-09 21:53:50 · 145 阅读 · 0 评论 -
POJ 1502 MPI Maelstrom
题目链接DescriptionBIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical communication subsystem. Valentine McKe...原创 2020-04-07 18:39:53 · 175 阅读 · 0 评论 -
POJ 3259 Wormholes
题目链接DescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination...原创 2020-04-06 22:45:22 · 188 阅读 · 0 评论 -
POJ 1860 Currency Exchange
四种最短路的分析dijkstra不能处理负权图的分析题目链接DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange ope...原创 2020-04-06 15:51:31 · 190 阅读 · 0 评论 -
POJ 3268 Silver Cow Party
题目链接DescriptionOne cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1…N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A total of M (1 ≤ M ≤ 100,000) unidirecti...原创 2020-04-02 22:42:35 · 203 阅读 · 0 评论 -
POJ 1797 Heavy Transportation
添加链接描述DescriptionBackgroundHugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from...原创 2020-04-02 00:18:11 · 103 阅读 · 0 评论 -
POJ 2253 Frogger
题目链接DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full...原创 2020-03-30 17:25:28 · 106 阅读 · 0 评论 -
POJ 2387 Til the Cows Come Home
添加链接描述DescriptionBessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, so...原创 2020-03-30 15:56:37 · 90 阅读 · 0 评论