-
约瑟夫(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
-
这是一个OpenGL应用画花瓶,你可以填写,如选择的颜色
这个是一个opengl程序,可以画花瓶,填充,选择颜色等-it is a opengl application Vase paintings, you can fill, such as choice of color
- 2022-06-28 08:47:30下载
- 积分:1
-
移动Ad
移动Ad-Hoc网络路由的一篇文章,有一定的学习和科研价值。-Mobile Ad-Hoc network routing in an article, a certain degree of learning and scientific research value.
- 2022-10-03 13:55:04下载
- 积分:1
-
java电子书 可下载到支持java程序的手机上!读者在其中可以任意添加书签,以便以后继续阅读!该篇为成人笑话 未成年人不得下载...
java电子书 可下载到支持java程序的手机上!读者在其中可以任意添加书签,以便以后继续阅读!该篇为成人笑话 未成年人不得下载-e-books can be downloaded to support java programs on the phone! In which readers can arbitrarily add bookmarks to the future to continue to read! Part of the adult jokes minors may not download
- 2022-05-06 16:20:37下载
- 积分:1
-
C++编成数据结构与程序设计方法
D.S.Malk编著
C++编成数据结构与程序设计方法
D.S.Malk编著-into C data structures and procedures for design D. S. edited Malk
- 2022-05-06 01:09:00下载
- 积分:1
-
数电答案. 第五版:数字电子技术其础
1
数电答案. 第五版:数字电子技术其础
1-4章
-The number of electric answer. Fifth Edition: Digital electronic technology of its Chu Chapter 1-4
- 2022-06-02 15:37:50下载
- 积分:1
-
小波分析理论及MATLAB7实现的例程,第16章小波工具箱的应用基础...
小波分析理论及MATLAB7实现的例程,第16章小波工具箱的应用基础-Wavelet analysis theory and realize MATLAB7 the routines, Chapter 16 of the application based on wavelet toolbox
- 2022-05-05 11:16:39下载
- 积分:1
-
张光义院士写的相控阵雷达技术下册部分,是一本不错的参考书...
张光义院士写的相控阵雷达技术下册部分,是一本不错的参考书-ZHANG Guang-yi wrote academicians phased array radar technology part of the next book is a good reference book
- 2022-06-19 05:17:19下载
- 积分:1
-
设计编写用户指南,请使用
design compile user guide,please use -design compile user guide, please use
- 2022-07-11 21:11:56下载
- 积分:1
-
Java视频,共分10课,全面生动地讲解了Java编程的基础知识,特别适合初学者....
Java视频,共分10课,全面生动地讲解了Java编程的基础知识,特别适合初学者.-Java video, divided into 10 classes, a comprehensive vividly explain the basic knowledge of Java programming, especially suitable for beginners.
- 2022-03-23 07:57:44下载
- 积分:1