This problem is in Contest(s) below:
Contest 1963:入门-第4课-课堂练习(崔)
Contest 2345:柯灵二班输入