摘要: Return of the AztecsProblem C:Homer SimpsonTime Limit: 3 secondsMemory Limit: 32 MBHomer Simpson, a very smart guy, likes eating Krusty-burgers. It takes Homer m minutes to eat a Krusty- burger. However, there�s a new type of burger in Apu�s Kwik-e-Mart. Homer likes those too. It takes him n minutes 阅读全文
posted @ 2014-02-27 21:12 ~~Snail~~ 阅读(346) 评论(0) 推荐(0) 编辑
摘要: Problem CLongest Run on a SnowboardInput:standard inputOutput:standard outputTime Limit:5 secondsMemory Limit:32 MBMichael likes snowboarding. That's not very surprising, since snowboarding is really great. The bad thing is that in order to gain speed, the area must slide downwards. Another disa 阅读全文
posted @ 2014-02-27 21:05 ~~Snail~~ 阅读(326) 评论(0) 推荐(0) 编辑
摘要: The Tower of BabylonPerhaps you have heard of the legend of the Tower of Babylon. Nowadays many details of this tale have been forgotten. So now, in l... 阅读全文
posted @ 2014-02-27 20:57 ~~Snail~~ 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Problem DThe Tourist GuideInput:standard inputOutput:standard outputMr. G. works as a tourist guide. His current assignment is to take some tourists from one city to another. Some two-way roads connect the cities. For each pair of neighboring cities there is a bus service that runs only between thos 阅读全文
posted @ 2014-02-27 20:40 ~~Snail~~ 阅读(397) 评论(0) 推荐(0) 编辑
摘要: Problem C: Arctic NetworkThe Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technologies are to be used in establishing the network: every outpost will have a radio transceiver and some outposts will in addition hav 阅读全文
posted @ 2014-02-27 19:03 ~~Snail~~ 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Problem EConnect the CampusInput:standard inputOutput:standard outputTime Limit:2 secondsMany new buildings are under construction on the campus of theUniversityofWaterloo. The university has hired bricklayers, electricians, plumbers, and a computer programmer. A computer programmer? Yes, you have b 阅读全文
posted @ 2014-02-27 15:06 ~~Snail~~ 阅读(349) 评论(0) 推荐(0) 编辑