Many Equal Substrings

Problem Name:
Many Equal Substrings
Site:CodeForces
Links:
Tags:
Problem setters: