This problem is in Contest(s) below:
Contest 1164:基础3班 - 决赛圈
Contest 1803:字符串加强练习
Contest 1970:语法提高-字符串练习-(2)字符串综合练习
Contest 1942:字符串基础练习(1)