Introduction - If you have any usage issues, please Google them yourself
Monkey King, N monkeys, numbered from 1 to N. They are in accordance with the number of clockwise, arranged in a circle, and then start off from the first monkey. The first monkey reported 1, and then each monkey reported the number of monkeys in front of it, plus 1. If a monkey's numbers is M, the monkey out of a monkey from 1 to start off again. The rest of the monkey to row into a circle off, until all the monkeys are out of date. The last one out of the monkey. According to the above rules, the program is written to select the king of monkeys in a circle.