摘要: 1227. Rally ChampionshipTime limit: 1.0 second Memory limit: 64 MBA high-level international rally championship is about to be held. The rules of the race state that the race is held on ordinary roads and the route has a fixed length. You are given a map of the cities and two-way roads connecting it 阅读全文
posted @ 2013-08-14 11:21 persistent codeants 阅读(282) 评论(0) 推荐(0)
摘要: DescriptionThe relative frequency of characters in natural language texts is very important for cryptography. However, the statistics vary for different languages. Here are the top 9 characters sorted by their relative frequencies for several common languages:English: ETAOINSHR German: ENIRSATUD Fr. 阅读全文
posted @ 2013-08-14 09:59 persistent codeants 阅读(294) 评论(0) 推荐(0)
摘要: 1463. Happiness to People!Time limit: 1.0 second Memory limit: 64 MBEvery Santa Claus wants to surprise children with his presents. This year Santa Claus Petrovich wants to surprise children of remote Cuckooland. He is sure that in order to make a real impression he should choose a route without rep 阅读全文
posted @ 2013-08-13 17:42 persistent codeants 阅读(361) 评论(0) 推荐(0)
摘要: 1137. Bus RoutesTime limit: 1.0 second Memory limit: 64 MBSeveral bus routes were in the city of Fishburg. None of the routes shared the same section of road, though common stops and intersections were possible. Fishburg old residents stated that it was possible to move from any stop to any other st 阅读全文
posted @ 2013-08-13 10:53 persistent codeants 阅读(327) 评论(0) 推荐(0)
摘要: 1004. Sightseeing TripTime limit: 2.0 second Memory limit: 64 MBThere is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attractions, sightseeing the town. To earn as much as possible from this attraction, the agency has accepted a shrewd d 阅读全文
posted @ 2013-08-12 17:49 persistent codeants 阅读(356) 评论(0) 推荐(0)
摘要: 1124. MosaicTime limit: 0.25 second Memory limit: 64 MBThere's no doubt that one of the most important and crucial things to do in this world is to bring up children. May be, if you study properly and reach good results at the competition you'll get a position of nanny in a kindergarten. But 阅读全文
posted @ 2013-08-12 13:21 persistent codeants 阅读(303) 评论(0) 推荐(0)
摘要: 1742. Team buildingTime limit: 1.0 second Memory limit: 64 MBThere arenprogrammers in the software development company. Each of them thinks that he is the greatest or the second greatest programmer in the company. In the latter case he can name the greatest programmer in his opinion.The administrati 阅读全文
posted @ 2013-08-12 09:42 persistent codeants 阅读(323) 评论(0) 推荐(0)
摘要: Problem DescriptionZero has an old printer that doesn't work well sometimes. As it is antique, he still like to use it to print articles. But it is too old to work for a long time and it will certainly wear and tear, so Zero use a cost to evaluate this degree. One day Zero want to print an artic 阅读全文
posted @ 2013-08-11 13:21 persistent codeants 阅读(229) 评论(0) 推荐(0)
摘要: 1049. Brave BalloonistsTime limit: 2.0 second Memory limit: 64 MBTen mathematicians are flying on a balloon over the Pacific ocean. When they are crossing the equator they decide to celebrate this event and open a bottle of champagne. Unfortunately, the cork makes a hole in the balloon. Hydrogen is 阅读全文
posted @ 2013-08-11 10:19 persistent codeants 阅读(258) 评论(0) 推荐(0)
摘要: 1109. ConferenceTime limit: 0.5 second Memory limit: 64 MBOn the upcoming conference were sentMrepresentatives of countryAandNrepresentatives of countryB(MandN≤1000). The representatives were identified with 1, 2, …,Mfor country A and 1, 2, …,Nfor countryB. Before the conferenceKpairs of representat 阅读全文
posted @ 2013-08-10 20:11 persistent codeants 阅读(311) 评论(0) 推荐(0)