随笔分类 - 字符串-sa(后缀数组)
摘要:The repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same consecutive substrings. F
阅读全文
摘要:Given a string, we need to find the total number of its distinct substrings. Input T number of test cases. $T using namespace std; const int N=1000
阅读全文