- Category:
- CSharp
- Tags:
-
[C/C++]
[源码]
- File Size:
- 1kb
- Update:
- 2013-01-17
- Downloads:
- 0 Times
- Uploaded by:
- hac
Description: King monkeys election. n monkeys circle, from 1 to m reported that the number of reported m the monkey out of the game. The remaining monkeys only from m+1 continue from 1 to m reported that the number of reported m the monkey out of the game. The monkeys n-count off, a monkey then reported the number (because huddled in a circle). Until the entire circle is only a monkey, the monkey is the king. n and m are input by the user, output the number of the elected king of the monkeys.
To Search:
File list (Check if you may need any files):
猴子选大王.cpp