This problem is in Contest(s) below:
Contest 3139:基础A-第7课-课堂练习
Contest 3171:基础A-第8课-课堂练习