-
本程序针对约瑟夫问题的描述:编号为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
-
WindowsCE Development Guide, detailing the development of wince
WindowsCE开发指南,详细介绍wince的开发-WindowsCE Development Guide, detailing the development of wince
- 2023-04-06 05:55:03下载
- 积分:1
-
一个简单IE浏览器的实现,,可供IE开发参考 本人想下载一个东西所以上传了这个源码...
一个简单IE浏览器的实现,,可供IE开发参考 本人想下载一个东西所以上传了这个源码-A simple realization of IE browser, IE for the development of reference I would like to download a thing so From the source
- 2022-02-13 08:44:21下载
- 积分:1
-
一个简单 的用户密码管理系统;欢迎下载使用
一个简单 的用户密码管理系统;欢迎下载使用-A simple user password management system welcome to use the download
- 2022-04-14 13:26:12下载
- 积分:1
-
在 VC下,使按钮不加载资源图片,而是让用户选择自己的图片加载在按牛表面上。...
在 VC下,使按钮不加载资源图片,而是让用户选择自己的图片加载在按牛表面上。-in VC, so the button is not loaded Photo resources, but allow users to choose their own pictures by cattle loaded on the surface.
- 2022-02-26 01:36:55下载
- 积分:1
-
spring rabbitmq整合
spring rabbitmq整合异步通信 ,项目是基于spring-rabbit和mvn实现的,一个简单的小demo,适合一入门
- 2023-06-12 10:25:19下载
- 积分:1
-
OPENGL下一个简单的图形系统。包括了基本操作及一些高级技巧如动画,蒙板,曲线曲面生成等。...
OPENGL下一个简单的图形系统。包括了基本操作及一些高级技巧如动画,蒙板,曲线曲面生成等。-OPENGL under a simple graphics system. Includes the basic operation and some advanced techniques such as animation, masking, generation of curves and surfaces.
- 2022-01-26 06:16:23下载
- 积分:1
-
储存换肤计算器
储存换肤计算器, 支持更换皮肤, 可存储计算结果
- 2022-02-02 18:38:35下载
- 积分:1
-
c的小程序很有用的,我认为很好的,也蛮经典的!希望对大家有帮助!...
c的小程序很有用的,我认为很好的,也蛮经典的!希望对大家有帮助!-c small procedures very useful, I think very good, but also pretty classic! We want to help!
- 2022-02-03 18:40:15下载
- 积分:1
-
在 C# 中的绘画
这是一个简单的绘画应用在 C# 中与几个绘图工具,如直线、 矩形、 圆和着色颜料桶工具。
- 2022-10-11 17:40:05下载
- 积分:1