文件名称:Joseph
介绍说明--下载内容均来自于网络,请自行研究使用
解决约瑟夫问题的一个小程序。一群猴子围成一个圈,从其中一个猴子开始报数,先规定一个数,数到这个数的猴子出列,下一个猴子继续报数,数到这个数的猴子就出列,直到全部猴子都出列为止,求猴子出列的顺序。-Joseph problems to solve a small program. A group of monkeys in a circle, from one of the monkeys reported the number of first specify a number, the number to the number of monkeys out of the column, next to continue to report the number of monkeys, the number to the number of monkeys on the column, until all monkeys out of the line up, find out the order of the columns monkeys.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Joseph.cpp