Introduction - If you have any usage issues, please Google them yourself
Monkey king election. n monkeys circle, reported that the number 1 to m, m reported monkeys out. The remaining monkeys the first m+ 1 started for continued reported that the number 1 to m, m reported monkeys out. After the first n monkeys reported that the number of the first one and then reported that the number of monkeys (since huddled circle). Until the entire ring only when a monkey, the monkey is the king. n and m by user input, output was elected king of the monkey s number.