摘要: Problem E: Automatic EditingSource file:autoedit.{c,cpp,java,pas}Input file:autoedit.inOutput file:autoedit.outText-processing tools likeawkandsedallow you to automatically perform a sequence of editing operations based on a script. For this problem we consider the specific case in which we want to 阅读全文
posted @ 2014-01-20 17:20 ~~Snail~~ 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Immediate DecodabilityAn encoding of a set of symbols is said to beimmediatelydecodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in binary, that no two codes within a set of codes are the same, that each code has at leas 阅读全文
posted @ 2014-01-20 11:29 ~~Snail~~ 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Problem B: Andy's First DictionaryTime limit: 3 secondsAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of words that he knows is, well, not quite enough. Instead of thinking up all the words himself, he has a briliant idea. From 阅读全文
posted @ 2014-01-20 09:39 ~~Snail~~ 阅读(562) 评论(0) 推荐(0) 编辑