This problem is in Contest(s) below:
Contest 1648:NJ24暑期信息学奥赛集训1-14