上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页

2015年8月11日

HDU 1874 畅通工程续(dijkstra+优先队列)

摘要: 畅通工程续Problem Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。现在,已知起点和终点,请你计算出要从起点到终点,最短需要行... 阅读全文

posted @ 2015-08-11 18:45 焰 阅读(207) 评论(0) 推荐(0) 编辑

HDU 1548 最短路

摘要: 最短路Problem Description在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据第一行是两个... 阅读全文

posted @ 2015-08-11 16:18 焰 阅读(319) 评论(0) 推荐(0) 编辑

HDU 1532 Drainage Ditches

摘要: Drainage DitchesProblem DescriptionEvery time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the ... 阅读全文

posted @ 2015-08-11 14:58 焰 阅读(133) 评论(0) 推荐(0) 编辑

2015年8月10日

HDU 1598 find the most comfortable road

摘要: find the most comfortable roadProblem DescriptionXX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed... 阅读全文

posted @ 2015-08-10 16:54 焰 阅读(160) 评论(0) 推荐(0) 编辑

HDU 1102 Constructing Roads

摘要: Constructing RoadsProblem DescriptionThere are N villages, which are numbered from 1 to N, and you should build some roads such that every two village... 阅读全文

posted @ 2015-08-10 10:48 焰 阅读(200) 评论(0) 推荐(0) 编辑

HDU 2122 Ice_cream’s world III(最小生成树)

摘要: Ice_cream’s world IIIProblem Descriptionice_cream’s world becomes stronger and stronger; every road is built as undirected. The queen enjoys traveling... 阅读全文

posted @ 2015-08-10 10:13 焰 阅读(180) 评论(0) 推荐(0) 编辑

2015年8月9日

HDU 1394 Minimum Inversion Number

摘要: Minimum Inversion NumberProblem DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisf... 阅读全文

posted @ 2015-08-09 16:44 焰 阅读(148) 评论(0) 推荐(0) 编辑

2015年8月7日

HDU 5363 Key Set(快速幂取模)

摘要: Key SetProblem Descriptionsoda has a set S with n integers {1,2,…,n}. A set is called key set if the sum of integers in the set is an even number. He ... 阅读全文

posted @ 2015-08-07 17:24 焰 阅读(277) 评论(0) 推荐(0) 编辑

HDU 5339 Untitled(暴搜)

摘要: UntitledProblem DescriptionThere is an integer a and n integers b1,…,bn. After selecting some numbers from b1,…,bn in any order, say ... 阅读全文

posted @ 2015-08-07 16:07 焰 阅读(268) 评论(0) 推荐(0) 编辑

POJ 2406 Power Strings

摘要: Power Strings Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcde 阅读全文

posted @ 2015-08-07 16:00 焰 阅读(201) 评论(0) 推荐(0) 编辑

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 28 下一页

导航