This problem is used in private contest:SH模拟赛