-
本程序针对约瑟夫问题的描述:编号为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图像的源代码,欢迎使用!-View the source code, welcomed the use!
- 2023-09-05 09:45:02下载
- 积分:1
-
最小二乘法C语言源码,便于移植在嵌入式系统
最小二乘法C语言源码,便于移植在嵌入式系统-source code using language c of least square method
- 2022-09-27 09:30:02下载
- 积分:1
-
98下的按键拦截驱动,VC++6和Vtools编译
98下的按键拦截驱动,VC++6和Vtools编译-98 keys under the driver interception, VC 6 and Vtools compiler
- 2023-03-22 09:00:03下载
- 积分:1
-
一个将MP3文件转换为WAV文件的源程序,需要mp3play.ocx
一个将MP3文件转换为WAV文件的源程序,需要mp3play.ocx-An MP3 file will be converted to WAV files source, the need mp3play.ocx
- 2023-06-05 20:15:03下载
- 积分:1
-
《C++大学教程》中,类与数据抽象的示例程序。教你接口与实现方法的分离,控制对成员的访问和private属性的工具函数。...
《C++大学教程》中,类与数据抽象的示例程序。教你接口与实现方法的分离,控制对成员的访问和private属性的工具函数。- C++ University Guide , the abstract data type and sample programs. Teach you methods of interface and implementation separation, control of members of private property access and function of the tool.
- 2022-01-25 20:11:08下载
- 积分:1
-
database into tremendous desire extensive military bases
数据库变成 欲望 军事基地巨大广泛的-database into tremendous desire extensive military bases
- 2022-12-05 21:30:03下载
- 积分:1
-
Autotools使用教程,非常实用,最小够用原则的忠实实践。
Autotools使用教程,非常实用,最小够用原则的忠实实践。-The use of Autotools tutorial, very useful, the principle of the smallest faithful enough practice.
- 2022-01-29 04:51:28下载
- 积分:1
-
遍历目录内文件的小工具,可以批量处理文件
遍历目录内文件的小工具,可以批量处理文件-Directory traversal file a small tool to handle batch files
- 2022-06-19 18:19:55下载
- 积分:1
-
爱视网影视收费系统
爱视网影视收费系统-love as network television system
- 2023-08-25 19:15:05下载
- 积分:1