-
编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,...
编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。
(1)利用单循环链表作为存储结构模拟此过程;
(2)键盘输入总人数、初始报数上限值m及各人密码;
(3)按照出列顺序输出各人的编号。-Numbered 1,2 ... n of the n individuals sitting clockwise circle, each holding a password (positive integer). An optional start a positive integer as the number of reported upper limit of m, from the first person to embark on the clockwise direction starting from a sequence reported the number of stop newspaper report m the number of people who reported m out of the column, as his password The new m value, in a clockwise direction from his next start back from a newspaper a few, and so on, until all all out of the column until a program designed to find out the column order. (1) the use of one-cycle simulation in this linked list storage structure as a process (2) the total number of keyboard input, the initial report and the person m the upper limit o
- 2023-05-21 04:10:03下载
- 积分:1
-
This sample shows the use of input and output string functions of emu8086.inc
This sample shows the use of input and output string functions of emu8086.inc
- 2022-01-25 23:18:54下载
- 积分:1
-
字符背景颜色变幻
字符背景颜色变幻-characters background color changes
- 2023-05-04 18:25:03下载
- 积分:1
-
8051单片机的A/D 2500,128X64点阵LCD的演示程序
8051 a/D2500,lcd 128x64演示程序
- 2022-09-19 10:15:03下载
- 积分:1
-
是苛性碱大地电磁法介枯地人工基相映成趣会人
是苛性碱大地电磁法介枯地人工基相映成趣会人-so good
- 2022-02-02 19:33:13下载
- 积分:1
-
此程序的功能是实现不通过外设而直接发出声音,程序里用到主程序调用辅助的程序实现语言是汇编语言...
此程序的功能是实现不通过外设而直接发出声音,程序里用到主程序调用辅助的程序实现语言是汇编语言-this procedure is the function peripherals is not passed directly to voice their opinions. Lane procedures used in the main program called auxiliary program language is assembly language
- 2022-05-26 22:12:18下载
- 积分:1
-
oi
说明: 逻辑电平接口设计规范逻辑电平接口设计规范(Logic level interface design specification
Logic level interface design specification
)
- 2013-11-06 11:15:37下载
- 积分:1
-
汇编移位操作,asm文件演示如何进行移位操作
汇编移位操作,asm文件演示如何进行移位操作-Compilation shift operation, asm files demonstrate how to carry out shift operation
- 2022-01-31 14:32:18下载
- 积分:1
-
nenglianghuishou2 - 副本
说明: 基于蓄电池和超级电容的制动能量回收希望帮助到你(Braking energy recovery based on battery and supercapacitor is expected to help you)
- 2018-12-27 19:47:02下载
- 积分:1
-
一个小小汇编程序 可以进行翻牌
一个小小汇编程序 可以进行翻牌-a little compilation procedures for transforming
- 2022-02-04 02:48:10下载
- 积分:1