后缀自动机

study from :

http://hihocoder.com/contest/hiho127/problem/1

127~132

and

后缀数组

study later

原文地址:https://www.cnblogs.com/cmyg/p/9606614.html