-
约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一...
约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph (Joeph) a description of the problem is: numbered 1,2, ..., n, n individuals sitting clockwise circle, each holding a password (positive integer). An optional start a positive integer as the number of reported upper limit of m, from the first person to embark on the clockwise direction starting from a reported sequence number, to report the number of m stop reported. Those who reported m out of the column, his password as the new m value, from his home in a clockwise direction on the next person started to re-reported from a few, and so on, until all of the column until all the up. Try a program designed to find out the column order.
- 2022-08-14 04:29:17下载
- 积分:1
-
mentorGraphics product information
mentorGraphics公司产品资料-mentorGraphics product information
- 2022-10-28 22:30:05下载
- 积分:1
-
新大话西游经典系列源代码
新大话西游经典系列源代码-new classic series beating about the bush source code
- 2022-02-04 10:01:40下载
- 积分:1
-
谭浩强C语言课件,C语言学习的基础教程,比较经典的PPT课件
谭浩强C语言课件,C语言学习的基础教程,比较经典的PPT课件-Hao Qiang C language courseware, C Language Learning Essentials, compare classic PPT Courseware
- 2022-03-22 05:28:45下载
- 积分:1
-
- 2022-03-06 01:46:56下载
- 积分:1
-
基于H323和SIP协议的视频会议网关的设计和实现750000027
基于H323和SIP协议的视频会议网关的设计和实现750000027-050308200702-ISWOO.doc-based H323 and SIP Video Conference Gateway Design and Implementation 750000027-0 50308200702- ISWOO.doc
- 2022-02-05 02:59:16下载
- 积分:1
-
这是本关于网业设计的书,FRONTPAGE,是用WARRAR压缩软件压缩的,希望大家好好学习...
这是本关于网业设计的书,FRONTPAGE,是用WARRAR压缩软件压缩的,希望大家好好学习-this is the network industry on the design of the book, FRONTPAGE, is WARRAR compression software compression, I hope, we can learn from
- 2022-11-09 20:35:03下载
- 积分:1
-
瑞泰创新ICETEK
瑞泰创新ICETEK-DM642-P4开发板的实验指导书,包括如何设置CCS和一系列图形实验的指南,方便新手学习DSP开发-Ruitai innovation ICETEK-DM642-P4 development board to guide the experiments, including how to set up a CCS and a series of experiments graphics guide, facilitate the development of new learning DSP
- 2022-03-23 13:58:42下载
- 积分:1
-
林锐的C++编程规范,很经典
林锐的C++编程规范,很经典-LIN C++ programming norms, classic
- 2022-06-01 09:26:37下载
- 积分:1
-
卫星通信工程(英文)卫星通信工程…
卫星通信工程(英语)卫星通信工程(英语)卫星通信工程(英语)卫星通信工程(英语)
- 2022-03-04 09:56:18下载
- 积分:1