This problem is used in private contest:图论基础1