文件名称:Josephus
介绍说明--下载内容均来自于网络,请自行研究使用
有n个人围坐在一个圆桌上,每个人的编号分别为1,2,3…n,现从第一个人开始数,数到第m个人时,这个人出列,再从下一位其编号是出列的人编号的后一位开始重复上述操作直到所有人都出列(编号是循环的,及最后一位的下一位是第一位),编写一个程序试将出列人的编号依次输出。-A n personal sitting around a round table, each person s Numbers were 1, 2, 3... N, now from the first person start to count, count to the first m individual, the man stood, and again from the next its Numbers is the people stood a start of Numbers after repeat the operation until all row (Numbers is the cycle, and finally a next is the first), write a program to try the Numbers in row output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Josephus.pas
线性表-约瑟夫环.doc
线性表-约瑟夫环.doc