-
本程序针对约瑟夫问题的描述:编号为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
-
cc2640 adc
主要是用于研究cc2640adc的研究,希望对开发cc2640的小伙伴有一定的帮助啊
- 2022-03-04 14:26:18下载
- 积分:1
-
《Visual C/C++系统开发典型实例解析》
《Visual C/C++系统开发典型实例解析》-源代码。学习VC++的必备源码
- 2023-07-14 01:25:11下载
- 积分:1
-
系统信息程序开发
系统信息程序的开发-System Information program development
- 2022-01-26 00:46:28下载
- 积分:1
-
能够显示万年历,农历以及任意两天之间的天数差
能够显示万年历,农历以及任意两天之间的天数差-Able to show that calendar, the Lunar and arbitrary number of days between two days of poor
- 2022-11-19 10:45:03下载
- 积分:1
-
重画矩形窗体标题,是简单易用的窗体美化源码,支持图片重画。...
重画矩形窗体标题,是简单易用的窗体美化源码,支持图片重画。-re-drawing of rectangular window title is a simple, easy-to-use source Form landscaping and support re-drawing pictures.
- 2023-07-11 16:20:03下载
- 积分:1
-
使用delphi编写的语音应答
使用delphi编写的语音应答-prepared by the use of voice response
- 2022-01-26 19:57:24下载
- 积分:1
-
multi
2003061723305924139多线程Socket,多线程,通信开发-multi-thread Socket, writing by communications
- 2023-08-26 12:05:04下载
- 积分:1
-
绘制等边五边形,依次填充部分颜色,并演示器过程。
绘制等边五边形,依次填充部分颜色,并演示器过程。-Equilateral five-sides
- 2022-12-03 17:45:03下载
- 积分:1
-
这是我学习数据结构编的关于显形链表的程序,对学习数据和算法的朋友,一定有用...
这是我学习数据结构编的关于显形链表的程序,对学习数据和算法的朋友,一定有用-This a programme about linear chain when I studied Data Structure.It must be useful to anyone who study data and algorithm
- 2022-01-26 14:25:03下载
- 积分:1