-
约瑟夫(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
-
"Matlab programming hundred cases" CD
《matlab编程百例》光盘代码11-20-"Matlab programming hundred cases" CD-ROM code 11-20
- 2023-05-21 22:40:03下载
- 积分:1
-
asp做的论坛,有注册,登录,数据库用的是sql server,
asp做的论坛,有注册,登录,数据库用的是sql server,
-asp do Forum, registration, login, the database is using the sql server,
- 2022-07-09 06:42:30下载
- 积分:1
-
空间数据库系统
spatial database systems
- 2022-10-07 11:50:03下载
- 积分:1
-
Qinghua data structure lectures, many universities are using the medium, very cl...
清华数据结构讲义,是很多大学的授课用书,很经典,也很好懂,推荐下载-Qinghua data structure lectures, many universities are using the medium, very classic, very good understanding, and to download
- 2022-01-21 05:51:40下载
- 积分:1
-
c和c++的部分算法汇集。还包括有一些经典算法如:贪婪算法。...
c和c++的部分算法汇集。还包括有一些经典算法如:贪婪算法。-arithmetc
- 2022-06-02 04:48:19下载
- 积分:1
-
C语言开发,主要完成C语言中的各种运算,比如如何计算闰年等,还有各种排序运算...
C语言开发,主要完成C语言中的各种运算,比如如何计算闰年等,还有各种排序运算-C language development, primarily to complete C language in a variety of operations, such as how to calculate a leap year and so on, there are a variety of sorting operations
- 2022-07-27 22:47:32下载
- 积分:1
-
中文的jdk1.4 api
中文的jdk1.4 api-Chinese jdk1.4 api
- 2022-01-24 09:45:01下载
- 积分:1
-
关于java 2d 的一本书 我看了 感觉还可以,大家也看看把
关于java 2d 的一本书 我看了 感觉还可以,大家也看看把-on the 2d of a book I read can also feel, we have to see if the he
- 2022-03-19 14:12:16下载
- 积分:1
-
对铅的屏幕保护程序代码
屏保开发代码,关于pb 的-screensaver code on the pb
- 2023-05-29 16:40:03下载
- 积分:1