This problem is in Contest(s) below:
Contest 3312:基础A-第13课-课堂练习
Contest 3287:基础A-第12课-课堂练习