Description: M king monkey monkeys election to elect king, the election is as follows: All monkeys by 1,2, ... ... ... m in accordance with the order number and circle. Started from the first number to the first n every few months, the monkeys on the outside out, and so the cycle off until the remaining circle when a monkey, the monkey is king. m and n from the keyboard input, print out the King of the monkeys became No.. Requirements: the use of one-cycle operation list
To Search:
File list (Check if you may need any files):
KingElect.cpp