-
本程序针对约瑟夫问题的描述:编号为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
-
本源码实现了bmp图像的读取与显示,对于基本的bmp图像操作给予实现...
本源码实现了bmp图像的读取与显示,对于基本的bmp图像操作给予实现-The source realize the bmp image to read and display, for the basic operating grant bmp image realize
- 2022-06-03 04:17:01下载
- 积分:1
-
小区低电压自动抄表系统程序,大家交流学习使用
小区低电压自动抄表系统程序,大家交流学习使用 -zidongchaobiaoxitong
- 2022-03-04 16:11:45下载
- 积分:1
-
学习离散数学时在老师地要求下编写的个小程序,正则式到有穷自动机...
学习离散数学时在老师地要求下编写的个小程序,正则式到有穷自动机 -discrete mathematics learning at the request of the teacher to prepare the small procedure is to then- DFA
- 2022-03-19 06:29:37下载
- 积分:1
-
这是一个基于MFC的医院挂号系统,仅供参考
这是一个基于MFC的医院挂号系统,仅供参考-This is a hospital-based MFC registration system for reference purposes only
- 2022-12-06 22:05:03下载
- 积分:1
-
控制面板cpl文件编写例子
控制面板cpl文件编写例子-Example for editing cpl file of control panel
- 2022-09-03 00:50:03下载
- 积分:1
-
use hook dll
use hook dll
- 2023-05-13 17:20:02下载
- 积分:1
-
用ECLIPSE编写一个简易租车行图形界面系统
用ECLIPSE编写一个简易租车行图形界面系统-ECLIPSE prepared using a simple graphical interface system rental companies
- 2022-03-05 10:57:47下载
- 积分:1
-
基于C# vs2005 编写的CRM 客户关系管理系统,使用SQL数据库 WINFROM 编程...
基于C# vs2005 编写的CRM 客户关系管理系统,使用SQL数据库 WINFROM 编程-failed to translate
- 2022-03-24 19:40:38下载
- 积分:1
-
EXEL to XML conversion
EXEL 到 XML 的转换程序-EXEL to XML conversion
- 2022-01-25 14:52:49下载
- 积分:1