-
编号为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
-
单一导线平差程序,计算角度闭合差和各项限差
单一导线平差程序,计算角度闭合差和各项限差-Single-wire adjustment procedure to calculate the angle deviation and closure of the allowable error
- 2022-02-24 16:56:01下载
- 积分:1
-
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形...
零件切割问题
给定一块宽度为W的矩形板,矩形板的高度不受限制。现需要从板上分别切割出n个高度为hi,宽度为wi的矩形零件。切割的规则是零件的高度方向与矩形板的高度方向保持一致。问如何切割使得所使用的矩形板的高度h最小?回溯-Parts mutilation given width W of a rectangular plate, rectangular plate of height restrictions. Is the need to cut out from the board, respectively, n-height hi, a width of the rectangular parts wi. Parts of the rules of cutting height direction and the direction of rectangular plates with a high degree of consistency. Asked how to make the use of cutting rectangular plate height h the smallest? Back
- 2023-03-01 07:20:02下载
- 积分:1
-
实现一般面向对象的编程功能
实现一般面向对象的编程功能-realization of object-oriented programming
- 2022-05-05 16:01:11下载
- 积分:1
-
一个立体按钮ACtiveX控件,很好用
一个立体按钮ACtiveX控件,很好用-a three-dimensional buttons ACtiveX controls, good use
- 2023-05-30 01:25:03下载
- 积分:1
-
实现将汉字与区位码快速互换。采用VF编写,sql查询技术。
实现将汉字与区位码快速互换。采用VF编写,sql查询技术。-Chinese characters with the district to achieve the rapid exchange of code. VF prepared using, sql query technology.
- 2022-01-24 09:05:52下载
- 积分:1
-
a shift register written in VHDL, which has very high reference value.
移位寄存器,VHDL编写,具有很高的参考价值~-a shift register written in VHDL, which has very high reference value.
- 2022-09-09 03:00:03下载
- 积分:1
-
C#开发的一个库存管理系统。很实用,源码齐全。
C#开发的一个库存管理系统。很实用,源码齐全。-C# development of an inventory management system. Very practical, complete source code.
- 2022-06-15 15:49:39下载
- 积分:1
-
读写图像的程序
读写图像的程序 -Image read and write procedures
- 2022-08-17 08:00:29下载
- 积分:1
-
宿舍管理系统
宿舍管理系统,功能较齐全。操作简单
改编于其他地方,可作数据结构等为课程设计
- 2022-01-25 15:21:47下载
- 积分:1