This problem is in Contest(s) below:
Contest 1982:入门-第5课-课堂练习(崔)
Contest 1963:入门-第4课-课堂练习(崔)