摘要: DescriptionWarning: Not all numbers in this problem are decimal numbers!Multiplication of natural numbers in general is a cumberso... 阅读全文
posted @ 2015-08-03 10:54 万俟天亮 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Street NumbersA computer programmer lives in a street with houses numbered consecutively (from 1) down one side of the street. Eve... 阅读全文
posted @ 2015-08-03 09:45 万俟天亮 阅读(576) 评论(0) 推荐(0) 编辑
摘要: Pizza CuttingWhen someone calls Ivan lazy, he claims that it is his intelligence that helps him to be so. If hisintelligence allows him ... 阅读全文
posted @ 2015-07-31 16:42 万俟天亮 阅读(199) 评论(0) 推荐(0) 编辑
摘要: SupermeanDo you know how to compute the mean (or average) of n numbers? Well, that’s not good enoughfor me. I want the supermean! “What’... 阅读全文
posted @ 2015-07-31 16:26 万俟天亮 阅读(452) 评论(0) 推荐(0) 编辑
摘要: HDU1548:A strange lift DijkstraDescriptionThere is a strange lift.The lift can stop can at every floor as you want, and there is a numbe... 阅读全文
posted @ 2015-07-29 14:41 万俟天亮 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 最短路一个人的旅行Description虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,^0^),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多地方,她... 阅读全文
posted @ 2015-07-29 10:56 万俟天亮 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 基础最短路Description某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。现在,已知起点和终点,请你计算出要从起点到终点... 阅读全文
posted @ 2015-07-28 20:36 万俟天亮 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 基础最短路Description在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input输入包括多组数据。每组数据... 阅读全文
posted @ 2015-07-28 11:12 万俟天亮 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Coconuts, RevisitedThe short story titledCoconuts, by Ben Ames Williams, appeared in theSaturday Evening Poston October 9, 1926. The story t... 阅读全文
posted @ 2015-07-28 09:26 万俟天亮 阅读(417) 评论(0) 推荐(0) 编辑
摘要: Leading and TrailingApart from the novice programmers, all others know that you can’t exactly represent numbers raisedto some high power. ... 阅读全文
posted @ 2015-07-27 21:24 万俟天亮 阅读(127) 评论(0) 推荐(0) 编辑