This problem is in Contest(s) below:
Contest 1172:入门测试2
Contest 1034:入门班打卡题