This problem is in Contest(s) below:
Contest 1155:ACM实训