This problem is in Contest(s) below:
Contest 1038:CCC Junior 算法基础训练
Contest 1040:CCC Junior 实战刷题