This problem is in Contest(s) below:
Contest 1263:暑期CSP集训2-2
Contest 1264:NJ暑期信息学编程集训2-2