This problem is in Contest(s) below:
Contest 1024:Noip备战1