This problem is in Contest(s) below:
Contest 1026:信息学奥赛校队4月训练赛