2013年3月6日

UVA10970 - Big Chocolate

摘要: Problem GBig ChocolateMohammad has recently visitedSwitzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine chocolate is very expensive(You know Mohammad is a little BIT stingy!), he could only afford bu... 阅读全文

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

UVA1339 - Ancient Cipher

摘要: Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form to prevent eavesdropping. The most popular ciphers in those times were so calledsubstitution cipheran 阅读全文

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

UVA10340 - All in All

摘要: Problem EAll in AllInput:standard inputOutput:standard outputTime Limit:2 secondsMemory Limit:32 MBYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss 阅读全文

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

UVA11039 - Building designing

摘要: Building designingAn architect wants to design a very high building. The building will consist of some floors, and each floor has a certain size. The size of a floor must be greater than the size of the floor immediately above it. In addition, the designer (who is a fan of a famous Spanish football 阅读全文

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

UVA11636 - Hello World!

摘要: Problem AHello World!Input:Standard InputOutput:Standard OutputWhen you first made the computer to print the sentence“Hello World!”, you felt so happy, not knowing how complex and interesting the world of programming and algorithm will turn out to be. Then you did not know anything about loops, so t 阅读全文

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

UVA11300 - Spreading the Wealth

摘要: F. Spreading the WealthProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to coins of equal value, such that the total number of coins is divisible by the numbe 阅读全文

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

导航