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