This problem is in Contest(s) below:
Contest 1059:CIE-C2-字符串专题练习
Contest 1013:C++ 高级水平测试
Contest 1019:1.7编程基础之字符串(35题)