This problem is in Contest(s) below:
Contest 5670:入门-第4课-课堂练习(王)
Contest 5669:入门-第3课-课堂练习(王)