This problem is in Contest(s) below:
Contest 6060:入门+-第12课-课堂练习(童)
Contest 6078:入门+-第12课-课堂练习(王)