This problem is in Contest(s) below:
Contest 3993:基础C-第12课-课堂练习
Contest 4015:基础C-第13课-课堂练习