This problem is used in private contest:高二解析算法练习