This problem is in Contest(s) below:
Contest 6446:AK张老师 语法中级A班 字符桶,双重循环家庭作业