This problem is in Contest(s) below:
Contest 1085:12.20课堂练习
Contest 1853:3.31B组测试
Contest 1977:零基础第二节