This problem is in Contest(s) below:
Contest 1529:初级班寒假作业