This problem is in Contest(s) below:
Contest 1204:2026.7.16课堂练习
Contest 1182:基础课程-字符串