SPOJ NSUBSTR. Substrings

某岛 at 
Spoj 传送门 | Vjudge 传送门 https://111qqz.github.io/2017/11/spoj-nsubstr/ 后缀自动机 + fail 树 DP。……