Introduction - If you have any usage issues, please Google them yourself
Monkey king election. Number from start to finish, from the end of coming to an end, reported the number of those left behind can be divisible by N, and the remaining exit. Until the monkey is less than N, the reported one is king.