This problem is in Contest(s) below:
Contest 5568:鲁小文源 打擂台 课堂练习
Contest 5502:凤鸣集训练习