This problem is in Contest(s) below:
Contest 6300:基础班6-2
Contest 6332:基础班6-9