字符串,AC自动机

Sorry, there is no problem in the problem set