专题四 最短路
Focus5679
学生一枚
展开
-
B - Frogger POJ - 2253
B - FroggerPOJ - 2253 Freddy 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...原创 2018-08-03 17:27:27 · 161 阅读 · 0 评论 -
Age of Moyu HDU - 6386
Age of MoyuHDU - 6386 Mr.Quin love fishes so much and Mr.Quin’s city has a nautical system,consisiting of N ports and M shipping lines. The ports are numbered 1 to N. Each line is occupied by a We...原创 2018-08-26 14:38:48 · 235 阅读 · 0 评论 -
Layout POJ - 3169
LayoutPOJ - 3169 Like 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...原创 2018-08-31 10:26:04 · 149 阅读 · 0 评论 -
Intervals POJ - 1201
IntervalsPOJ - 1201 You are given n closed, integer intervals [ai, bi] and n integers c1, ..., cn.Write a program that:reads the number of intervals, their end points and integers c1, ..., cn fr...原创 2018-08-31 10:26:56 · 195 阅读 · 0 评论 -
World Exhibition HDU - 3592
World ExhibitionHDU - 3592 Nowadays, many people want to go to Shanghai to visit the World Exhibition. So there are always a lot of people who are standing along a straight line waiting for enteri...原创 2018-08-31 10:27:51 · 196 阅读 · 0 评论 -
拓扑排序·一 HihoCoder - 1174
拓扑排序·一HihoCoder - 1174 描述由于今天上课的老师讲的特别无聊,小Hi和小Ho偷偷地聊了起来。小Ho:小Hi,你这学期有选什么课么?小Hi:挺多的,比如XXX1,XXX2还有XXX3。本来想选YYY2的,但是好像没有先选过YYY1,不能选YYY2。小Ho:先修课程真是个麻烦的东西呢。小Hi:没错呢。好多课程都有先修课程,每次选课之前都得先查查有没有先修...原创 2018-08-31 10:28:57 · 183 阅读 · 0 评论 -
拓扑排序·二 HihoCoder - 1175
拓扑排序·二HihoCoder - 1175 描述小Hi和小Ho所在学校的校园网被黑客入侵并投放了病毒。这事在校内BBS上立刻引起了大家的讨论,当然小Hi和小Ho也参与到了其中。从大家各自了解的情况中,小Hi和小Ho整理得到了以下的信息:校园网主干是由N个节点(编号1..N)组成,这些节点之间有一些单向的网路连接。若存在一条网路连接(u,v)链接了节点u和节点v,则节点u可以向节点...原创 2018-08-31 10:29:48 · 149 阅读 · 0 评论 -
Almost Acyclic Graph CodeForces - 915D
Almost Acyclic GraphCodeForces - 915D You are given a directed graph consisting of n vertices and m edges (each edge is directed, so it can be traversed in only one direction). You are allowed to ...原创 2018-08-31 10:32:50 · 168 阅读 · 0 评论 -
Sorting It All Out POJ - 1094
Sorting It All OutPOJ - 1094 An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, ...原创 2018-08-31 10:33:30 · 143 阅读 · 0 评论 -
Highway Project ZOJ - 3946 最短路
Edward, the emperor of the Marjar Empire, wants to build some bidirectional highways so that he can reach other cities from the capital as fast as possible. Thus, he proposed the highway project.The...原创 2019-04-12 15:59:21 · 189 阅读 · 0 评论 -
Road Construction Aizu - 2249
Road ConstructionAizu - 2249 Problem H:King Mercer is the king of ACM kingdom. There are one capital and some cities in his kingdom. Amazingly, there are no roads in the kingdom now. Recently, h...原创 2018-08-26 14:37:31 · 245 阅读 · 0 评论 -
Convenient Location Aizu - 0189
Convenient LocationAizu - 0189 便利な町来春卒業するAさんは、就職を機に引越しをすることにしました。就職する会社は、オフィスがいくつかの町にあって、日によって出勤するオフィスが違います。そこでAさんは,どこのオフィスに 行くにも時間の短い町に住もうと考えました。そこであなたは、Aさんを助けるため、住むのに一番便利な町を探すことになりました。 ...原创 2018-08-26 14:34:51 · 132 阅读 · 0 评论 -
C - Heavy Transportation POJ - 1797
C - Heavy TransportationPOJ - 1797 BackgroundHugo 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 ...原创 2018-08-04 16:18:42 · 137 阅读 · 0 评论 -
D - Silver Cow Party POJ - 3268
D - Silver Cow PartyPOJ - 3268 One 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 ≤ ...原创 2018-08-04 19:24:15 · 140 阅读 · 0 评论 -
E - Currency Exchange POJ - 1860
E - Currency ExchangePOJ - 1860 Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations o...原创 2018-08-05 11:22:32 · 191 阅读 · 0 评论 -
H - Cow Contest POJ - 3660
H - Cow ContestPOJ - 3660 N (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 co...原创 2018-08-05 11:23:04 · 129 阅读 · 0 评论 -
F - Wormholes POJ - 3259
F - WormholesPOJ - 3259 While 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 ...原创 2018-08-05 14:49:25 · 187 阅读 · 0 评论 -
ROADS POJ - 1724
ROADSPOJ - 1724 N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length and the toll that needs to be paid for the r...原创 2018-08-02 15:00:17 · 303 阅读 · 0 评论 -
A - Til the Cows Come Home POJ - 2387
A - Til the Cows Come HomePOJ - 2387 Bessie 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 need...原创 2018-08-03 11:07:42 · 185 阅读 · 0 评论 -
Out of Hay POJ - 2395
Out of HayPOJ - 2395 The cows have run out of hay, a horrible event that must be remedied immediately. Bessie intends to visit the other farms to survey their hay situation. There are N (2 <= N...原创 2018-08-26 14:31:00 · 125 阅读 · 0 评论 -
Roadblocks POJ - 3255
RoadblocksPOJ - 3255 Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home too quickly, because she likes the s...原创 2018-08-26 14:33:12 · 194 阅读 · 0 评论 -
2019 Multi-University Training Contest 1 1005 Path HDU6582 (迪杰斯特拉,最小割)
PathTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1353Accepted Submission(s): 351Problem DescriptionYears later, Jerry fell in ...原创 2019-07-22 19:53:22 · 159 阅读 · 0 评论