Description: A phone book sorting n 2 election monkey king monkey circle, sequentially numbered from 1 to n. Q monkeys from the beginning, the reported number from 1 to m, where m monkeys report withdraw from the race, the next exit and from under the monkey' s a start number from 1 to m reported until the last one remaining for the king. Will the last of which was elected king monkeys.
To Search:
File list (Check if you may need any files):
p3.c
p4.c