This problem is in Contest(s) below:
Match 3406:CSP-J模拟赛-NOIP赛制