Description: Monkeys have M circle, each one each from 1 to M in number, intended to select from a king after consultations, decided to select a king s rule: starting from the first one reported that the number of cycles, the number of monkeys to N a circle, the last remaining is the king. Requirements: from the keyboard input M, N, the calculation program which became a number of monkey king
File list (Check if you may need any files):
dawang.cpp
Debug
.....\dawang.obj
.....\houzi.exe
.....\houzi.ilk
.....\houzi.pch
.....\houzi.pdb
.....\vc60.idb
.....\vc60.pdb
houzi.dsp
houzi.dsw
houzi.ncb
houzi.opt
houzi.plg
题目.txt