-
本程序针对约瑟夫问题的描述:编号为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
-
两个乒乓球队进行比赛,各出3人。甲队为a,b,c三人,乙队为x,y,z三人,已抽签决定比赛名单。有人向队员打听比赛的名单,a说他不和x比,c说他不和x,z比,请...
两个乒乓球队进行比赛,各出3人。甲队为a,b,c三人,乙队为x,y,z三人,已抽签决定比赛名单。有人向队员打听比赛的名单,a说他不和x比,c说他不和x,z比,请编程序找出三队赛手的名单。-Two table tennis team competition, each person 3. A team for a, b, c three B teams for the x, y, z three, has decided to match the list of drawing. It was asked to match the list of members, a said that he did not and the x ratio, c said that he did not, and x, z ratio, the procedure is requested for three teams racing to find the list.
- 2022-02-27 03:43:57下载
- 积分:1
-
myie浏览器的源代码
myie浏览器的源代码-vs. browser source code
- 2022-03-25 21:37:28下载
- 积分:1
-
单纯形法c编程,可用于运筹学线性规划问题的解决,优化问题...
单纯形法c编程,可用于运筹学线性规划问题的解决,优化问题-Simplex Method c programming, operations research can be used for linear programming problem-solving, optimization, etc.
- 2022-08-06 01:40:56下载
- 积分:1
-
用VC(MFC)准备九
用VC(MFC)编写的九格拼图游戏源码程序,经本人测试程序可以运行。共编程爱好者交流使用。
。-With VC (MFC) to prepare the nine-source grid puzzle procedures, as I can run a test procedure. A total exchange of the use of programming enthusiasts. .
- 2022-03-25 10:18:25下载
- 积分:1
-
SQLET分词算法,一个C程序,供大家参考。
SQLET分词算法,一个C程序,供大家参考。-SQLET segmentation algorithm, a C program, for your reference.
- 2022-06-26 20:40:34下载
- 积分:1
-
wince5.0sdk下evc编译通过,本程序实现了wince下bmp图片的加载显示,并实现了图片的动画功能...
wince5.0sdk下evc编译通过,本程序实现了wince下bmp图片的加载显示,并实现了图片的动画功能-EVC compiler under wince5.0sdk passed, this process achieved a wince under the load bmp picture show, and realize the picture of the animated feature
- 2022-03-12 03:24:43下载
- 积分:1
-
VisualASsist
dropbear 在嵌入式的开发过程监控进行调试,而且还在玩 dropbearkey 使用来生成 A1200 关键: dropbearkey-t rsa-f dropbear_r
- 2022-07-10 09:40:47下载
- 积分:1
-
串口助手源码(VC++ )
一个不错的串口调试助手源码,使用VC++编写,内容详尽,可供大家编写自己的串口工具时参考。该源码使用SCOMM
- 2022-02-26 07:47:41下载
- 积分:1
-
获取汉字的16进制编码,将汉字的转换为16进制码
获取汉字的16进制编码,将汉字的转换为16进制码
- 2022-03-23 16:47:28下载
- 积分:1