This problem is in Contest(s) below:
Contest 2017:入门-第7课-回家作业(崔)
Contest 2018:入门-第7课-课堂练习(崔)
Contest 2383:基础C-第8课-课堂练习