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