-
本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺...
本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺序时针方向自1开始顺序报数,报道m时停止报数,报m的人处列将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。
演示程序以用户和计算机的对话方式执行,即在计算机终端上显示“提示信息”下,用户输入循环人数n和每人的密码。-This procedure description specifically for Joseph problem: The serial number is 12, ... The n n individual surrounds the ready-made one circle according to the clockwise sense , each person holds (positive integer) a password, one positive integer beginning to assume a post of selections is upper limits ms numbering off, direction starts the hour hand beginning from the first people according to order from 1 numbering off in proper order , stop numbering off when reporting m, the person place column reporting m looks on his password as new m value , the individual begins to number off again from 1 , getting down like this from his time as soon as going ahead in clockwise sense, until proprietor all till leaving self s place in the ranks.
- 2022-10-13 13:15:03下载
- 积分:1
-
嵌入式WINCE控件使用编程,用EVC开发来实现.
嵌入式WINCE控件使用编程,用EVC开发来实现.-WINCE control the use of embedded programming, development to achieve with the EVC.
- 2023-03-08 10:25:04下载
- 积分:1
-
miniICE jtag programmer circuit
miniICE jtag programmer circuit
- 2022-02-04 23:24:09下载
- 积分:1
-
Esta es una pequeñ a introduccion de Maude, un lenguaje declarativo con gran...
Esta es una pequeñ a introduccion de Maude, un lenguaje declarativo con gran potencia de calculo.-Esta es una pequeñ a introduccion de Maude, un lenguaje declarativo con gran potencia de calculo.
- 2022-07-06 14:35:40下载
- 积分:1
-
这是一个测试程序
This a test program-This is a test program
- 2022-06-22 06:08:36下载
- 积分:1
-
机器人的手臂的移动和正投影的效果。机器人的姿态
机器人的手臂的移动和正投影的效果。机器人的姿态-Robot arm movement and orthographic projection effects. Robot posture
- 2022-02-20 04:29:02下载
- 积分:1
-
管理系统
强大的管理系统,功能齐全,界面漂亮。
- 2023-08-23 04:45:09下载
- 积分:1
-
mfc的RTTI过程的模拟,对与理解MFC的RTTI原理有很好的帮助,源码详细编写模拟了MFC的RTTI响应的宏...
mfc的RTTI过程的模拟,对与理解MFC的RTTI原理有很好的帮助,源码详细编写模拟了MFC的RTTI响应的宏-mfc of RTTI process simulation, and understanding of the principle of MFC
- 2023-08-24 16:15:04下载
- 积分:1
-
实现企业员工的上下班考勤,请假,值勤等一系列操作。采用VB编写,简单实用。...
实现企业员工的上下班考勤,请假,值勤等一系列操作。采用VB编写,简单实用。-Enterprise employees to work attendance, leave, duty, such as a series of operations. Using VB to prepare, simple and practical.
- 2022-02-28 18:43:26下载
- 积分:1
-
在四元数表示下导出了两个旋转之间差异的一种简单形式,将人体各关节上总的旋转变化作为帧间距,设计了一种从运动捕获数据中提取关键帧的高效算法。...
在四元数表示下导出了两个旋转之间差异的一种简单形式,将人体各关节上总的旋转变化作为帧间距,设计了一种从运动捕获数据中提取关键帧的高效算法。-In quaternion derived under express the difference between the two rotating a simple form of the body of the rotary joint on the total change as the frame spacing, the design of a motion capture data from the key frame extraction algorithm efficient.
- 2022-03-30 07:14:59下载
- 积分:1