摘要: 题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionThe programming language Better And Portable Code (BAPC) is a language for working with lists of integers. The language has two built-in functions: ‘R’ (reverse) and ‘D’ (drop).The function ‘R’ reverses its input list, and ’D’ drops th 阅读全文
posted @ 2013-11-04 18:39 Jolin123 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 题目:DescriptionGiven a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers:• Emergency 911• Alice 97 625 999• Bob 91 12 54 26In this case, it’s not possible to call Bob, because the central would 阅读全文
posted @ 2013-11-04 00:15 Jolin123 阅读(418) 评论(0) 推荐(0) 编辑