This problem is used in private contest:高斯算法