This problem is in Contest(s) below:
Contest 6330:入门-第18课-课堂练习-王
Contest 6321:入门-第13课-课堂练习