文件名称:Josephus
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.95kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.