This problem is in Contest(s) below:
Contest 1182:基础课程-字符串