无谓的味道

导航

2015年10月24日 #

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-w... 阅读全文

posted @ 2015-10-24 16:48 无谓的味道 阅读(171) 评论(0) 推荐(0) 编辑

2015年10月23日 #

poj 1860 Currency Exchange

摘要: DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and perfo... 阅读全文

posted @ 2015-10-23 15:10 无谓的味道 阅读(125) 评论(0) 推荐(0) 编辑

2015年10月22日 #

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 visi... 阅读全文

posted @ 2015-10-22 15:39 无谓的味道 阅读(156) 评论(0) 推荐(0) 编辑

2015年10月21日 #

poj 3414 Pots(BFS)

摘要: DescriptionYou are given two pots, having the volume ofAandBliters respectively. The following operations can be performed:FILL(i) fill the poti(1 ≤i≤... 阅读全文

posted @ 2015-10-21 20:49 无谓的味道 阅读(152) 评论(0) 推荐(0) 编辑

2015年10月20日 #

poj 3087 Shuffle'm Up (模拟过程)

摘要: DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks... 阅读全文

posted @ 2015-10-20 14:47 无谓的味道 阅读(407) 评论(0) 推荐(0) 编辑

2015年10月19日 #

hdu 1325 && poj 1308 Is It A Tree?(并查集)

摘要: DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edg... 阅读全文

posted @ 2015-10-19 20:44 无谓的味道 阅读(156) 评论(0) 推荐(0) 编辑

hdu 1272 小希的迷宫(并查集)

摘要: Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从... 阅读全文

posted @ 2015-10-19 19:55 无谓的味道 阅读(149) 评论(0) 推荐(0) 编辑

poj 3126 Prime Path (BFS)

摘要: DescriptionThe ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four... 阅读全文

posted @ 2015-10-19 19:34 无谓的味道 阅读(164) 评论(0) 推荐(0) 编辑

2015年10月17日 #

hdu 1394 Minimum Inversion Number 线段树

摘要: Problem DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.For a given sequ... 阅读全文

posted @ 2015-10-17 16:36 无谓的味道 阅读(167) 评论(0) 推荐(0) 编辑

2015年10月16日 #

hdu 1290_献给杭电五十周年校庆的礼物

摘要: Description或许你曾经牢骚满腹或许你依然心怀忧伤或许你近在咫尺或许你我天各一方对于每一个学子母校永远航行在生命的海洋今年是我们杭电建校五十周年,这是一个值得祝福的日子。我们该送给母校一个怎样的礼物呢?对于目前的大家来说,最好的礼物当然是省赛中的好成绩,我不能参赛,就送给学校一个DOOM I... 阅读全文

posted @ 2015-10-16 15:32 无谓的味道 阅读(168) 评论(0) 推荐(0) 编辑