This problem is in Contest(s) below:
Contest 5254:AK张老师入门D班 字符桶 字符串进阶家庭作业