This problem is in Contest(s) below:
Contest 5390:入门-第12课-课堂练习(汪)
Contest 5527:入门-第13课-课堂练习(三小社团)