A. Many Equal Substrings--codeforces(div3)

NoSuchKey