This problem is in Contest(s) below:
Contest 3159:(AK张老师)薄发班 字符复习2
Contest 3184:字符与字符串