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