-
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,...
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,报道m时停止报数。报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。采用单向循环链表模拟此过程,按照出列的顺序印出各人的编号测试数据:m的初值为20;n=7,7个人的密码依次为:3,1,7,2,4,8,4,首先m的值为6(正确的出列顺序应为6,1,4,7,2,3,5)-No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, each holding a password (positive integers), a candidate started as a positive integers m ceiling on the number of reported from the first individuals to embark on the clockwise direction from the start sequence from a few newspaper reports m reportedly stopped a few. M reported out of the list of his password as a new value m, from the clockwise direction on the next re-started from a few reported so on, until all out all out, the design of a procedure sought out the order out. Listless one-cycle simulation process and follow the sequence shown in the numbers printed each test data : m for the initial 20; N = 7,7 personal passwords were : 3,1,7,2,4,8
- 2022-01-24 15:11:40下载
- 积分:1
-
万年历中星期的算法 包括闰年,从0000
万年历中星期的算法 包括闰年,从0000-9999年 原代码,未编译-hefty almanac weeks algorithm which include a leap year, from 0000-9999, the original code did not compile
- 2022-11-17 19:05:03下载
- 积分:1
-
demonstration of how the dialog box to view the methods used vc 6.0.
演示了如何在对话框中加入视图的方法,采用vc++6.0.-demonstration of how the dialog box to view the methods used vc 6.0.
- 2022-01-25 16:44:26下载
- 积分:1
-
建议网上购票系统
这是我在校课程结课作业,功能不大,倒挺实用,代码简易,适合在校生引用,但注意修改界面,不要雷同,纯属于原创,希望能获得点评。
- 2022-01-22 08:19:15下载
- 积分:1
-
Chinese characters feel Lattice production tools, high
汉字字摸点阵批量生产工具,大批量生成,简单易用-Chinese characters feel Lattice production tools, high-volume production, easy to use
- 2023-06-16 21:10:04下载
- 积分:1
-
a classical painting C# algorithm, the codes is easy to understand, it s content...
用c#的经典画图算法,代码容易理解,内容丰富,是初学者的好帮手-a classical painting C# algorithm, the codes is easy to understand, it s content is very rich, it is a good assistant for beginner.
- 2023-04-06 00:50:03下载
- 积分:1
-
在about里面用html作连接
在about里面用html作连接-about the inside for connecting with html
- 2023-05-24 19:35:03下载
- 积分:1
-
qt截屏工程
简单的使用qt5开发的截屏工具,能够实现全屏截屏、当前程序截屏和自定义范围截屏。
- 2022-07-20 15:33:46下载
- 积分:1
-
实现图像的WALSH变换,对于图像变换的练习很有意义
实现图像的WALSH变换,对于图像变换的练习很有意义
-WALSH achieve image transform, image transform for meaningful practice
- 2022-05-31 22:21:45下载
- 积分:1
-
ripple addrr
好的一个vhdl代码的纹波进位加法器好的一个vhdl代码的纹波进位加法器
- 2022-03-20 12:26:48下载
- 积分:1