This problem is used in private contest:暑期算法训练