Introduction - If you have any usage issues, please Google them yourself
There are n people to take part in a marathon relay game, the game rules everyone may terminate the game according to their own circumstances and by the next person to continue the relay.Because everyone s situation is different, even if the same person cannot always keep a good state in the process of the whole game.So ask them before the game according to each person s situation, you need to develop a relay rules, the less time the whole game, the better.Please write a program to help them make such relay scheme.