ACLPC I
from AtCoder Library Practice Contest
ACLPC_I
I - Number of Substrings
https://gyazo.com/f4b3003c47daa0a0b7d1886ebf4ad01e
Build suffix array and also create LCP array
The value of LCP is "the number of identical substrings", so subtract it from the number of all substrings
---
This page is auto-translated from /nishio/ACLPC I using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.