2013年3月25日

UVa11462 - Age Sort

摘要: BAge SortInput:Standard InputOutput:Standard OutputYou are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that country lives for 100 or more years. Now, you are given a very simple task of sorting all the ages in ascending order.Input 阅读全文

posted @ 2013-03-25 18:40 仗剑奔走天涯 阅读(175) 评论(0) 推荐(0) 编辑

UVa11100 - The Trip, 2007

摘要: Problem A: The Trip, 2007A number of students are members of a club that travels annually to exotic locations. Their destinations in the past have included Indianapolis, Phoenix, Nashville, Philadelphia, San Jose, Atlanta, Eindhoven, Orlando, Vancouver, Honolulu, Beverly Hills, Prague, Shanghai, and 阅读全文

posted @ 2013-03-25 15:06 仗剑奔走天涯 阅读(225) 评论(0) 推荐(0) 编辑

UVa11389 - The Bus Driver Problem

摘要: IIUCONLINE CONTEST2008Problem E: The Bus Driver ProblemInput: standard inputOutput: standard outputIn a city there arenbus drivers. Also there arenmorning bus routes &nafternoon bus routes with various lengths. Each driver is assigned one morning route & one evening route. For any driver, if 阅读全文

posted @ 2013-03-25 11:51 仗剑奔走天涯 阅读(287) 评论(0) 推荐(0) 编辑

UVa1344 - Tian Ji -- The Horse Racing

摘要: Here is a famous story in Chinese history.That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse racing with the king and others.Both of Tian and the king have three horses in different classes, namely, regular, plus, and super. The rule is to ha 阅读全文

posted @ 2013-03-25 10:51 仗剑奔走天涯 阅读(238) 评论(0) 推荐(0) 编辑

UVa1450 - Airport

摘要: A big city has an international airport handling 40 million passengers a year. But this is notorious as one of the most congested airports in the world. In this airport, there is only one landing strip as in the above figure. Therefore the landing strip is always crowded with a lot of aircrafts wait 阅读全文

posted @ 2013-03-25 01:46 仗剑奔走天涯 阅读(297) 评论(0) 推荐(0) 编辑

导航