摘要: Sample Input 1 10 2 3 4 4 3 2 2 3 4 4 1 10 2 3 4 4 3 2 2 3 4 4 Sample Output Case #1: 9 要求找出一段数字。 将其分成3部分,第①和第②部分成回文字串,第②和第③部分成回文字串 用manacher算出各个点的回文后 阅读全文
posted @ 2015-08-12 11:58 Przz 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Sample Input 2 00?0 1 2 4 8 ???? 1 2 4 8 2 00?0 1 2 4 8 ???? 1 2 4 8 Sample Output Case #1: 12 Case #2: 15 Case #1: 12 Case #2: 15 ?部分可以是0 or 1,将二进制转化 阅读全文
posted @ 2015-08-12 10:38 Przz 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Problem Description In this problem, we should solve an interesting game. At first, we have an integer n, then we begin to make some funny change. We 阅读全文
posted @ 2015-08-12 10:10 Przz 阅读(152) 评论(0) 推荐(0) 编辑