This problem is in Contest(s) below:
Contest 5540:基础A-寒假6课-课堂练习
Contest 5541:基础A-寒假7课-课堂练习