This problem is in Contest(s) below:
Contest 1278:2303-04第5次课堂作业
Contest 1449:训练五
Contest 1107:字符串训练
Contest 1452:第二次训练