摘要: Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T<=20; Each test case consists of one stri 阅读全文
posted @ 2017-01-13 22:33 19992147 阅读(172) 评论(0) 推荐(0) 编辑
摘要: matrix67 nxt[i]:[1-i]中最长公共前后缀的长度 阅读全文
posted @ 2017-01-13 20:40 19992147 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Asterix, Obelix and their temporary buddies Suffix and Prefix has finally found the Harmony temple. However, its doors were firmly locked and even Obe 阅读全文
posted @ 2017-01-13 20:38 19992147 阅读(1006) 评论(0) 推荐(2) 编辑