登录
首页 » 汇编语言 » 编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,...

编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,...

于 2023-05-21 发布 文件大小:4.10 kB
0 147
下载积分: 2 下载次数: 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这个程序主要是为了简单方便的改变屏幕的分辨率。
    这个程序主要是为了简单方便的改变屏幕的分辨率。-This procedure is simple and convenient in order to change the screen resolution.
    2022-03-15 06:28:50下载
    积分:1
  • 大学里First集和Follow集生成算法 希望对大家有点用
    大学里First集和Follow集生成算法 希望对大家有点用-University First Set and Follow Set Generation Algorithm hope all of you a bit with
    2022-07-16 03:35:27下载
    积分:1
  • DSP基础实验用于基础的DSP实验,简单易懂,
    DSP基础实验用于基础的DSP实验,简单易懂,-DSP PROGRAM BASED ON ASM DSP PROGRAM BASED ON ASM
    2022-09-15 08:05:03下载
    积分:1
  • This file were downloaded from the Programmers Heaven CD
    This file were downloaded from the Programmers Heaven CD-Rom. More information about this CD-Rom can be found at the following WWW pages: http://www.algonet.se/~synchron http://www.infomagic.com synchron@algonet.se orders@infomagic.com-This file were downloaded from the Program mers Heaven CD-Rom. More information about stories "s CD-Rom can be found at the following Web pages : http://www.algonet.se/ ~ synchron http :// or www.infomagic.com synchron@algonet.se ders@infomagic.com
    2022-07-14 22:53:25下载
    积分:1
  • MSP430C_p120 routines to more information please contact me.
    MSP430C_p120例程如要更多资料请联系我.-MSP430C_p120 routines to more information please contact me.
    2023-03-24 16:30:03下载
    积分:1
  • 在DOS下显示个性图形
    在DOS下显示个性图形-DOS graphics show personality
    2022-03-01 16:47:01下载
    积分:1
  • SWAT模型源代码
    应用背景SWAT 开源,用于水文模型的进一步开发开源,可以对源模型进行改装,增加模块和减少模块,并进一步开发,使模型更加适合研究区的状况,也可以对模型进行重新组装开发,从而节约成本,提高工作效率,为我国水文模型的开发提供便利。关键技术After excluded the influence of antecedent rainfall, the soil loss at the hillslope with ephemeral gully had a significant linear regression equation with PI30.  Since determination coefficient (R2) and Nash-Suttclife efficiency coefficient (ENS) were all satisfactory, the results showed that soil loss equations were all run well while applying to soil loss prediction for the three rainfall regimes.
    2022-10-29 22:50:04下载
    积分:1
  • 这是一个代码简单修改的工具,还算是蛮经典的一个。
    这是一个汇编代码简单修改的工具,还算是蛮经典的一个。-This is a simple modification of the tool assembly code, is actually quite pretty classic one.
    2022-12-23 02:45:03下载
    积分:1
  • (1) 有一个主持人控制开关和8路抢答按扭,当主持人允许抢答时才能进行抢答操作,并用一个数码管显示抢答选手的号码,同时其他选手不能再抢答。 (2)电路上...
    (1) 有一个主持人控制开关和8路抢答按扭,当主持人允许抢答时才能进行抢答操作,并用一个数码管显示抢答选手的号码,同时其他选手不能再抢答。 (2)电路上要加个蜂鸣器的电路,当有选手抢答时蜂鸣器响一下。 (3)要有倒计时功能,开始抢答时开始倒20秒计时,用两个数码管显示,当有人抢答时停止倒计时。 2.2拓展部分 用按键可设置倒计时的时间,范围在5秒到30秒之间。-(1) has a host switch and 8-way control button to answer in, when the moderator allowed to be carried out to answer in time to answer in operation, and use an LED display to answer in the number of players, while other players can no longer answer in his place. (2) the circuit, we should add a buzzer circuit, when there are players when the buzzer rang to answer in about. (3) to have the countdown feature to begin to answer in 20 seconds when you start down time, using two digital tube display, when someone stops to answer in the countdown. 2.2 The expansion of part of the buttons can be set with the countdown time, the range of 5 seconds to 30 seconds.
    2022-02-25 13:31:03下载
    积分:1
  • 武汉理工大学计算机学院 课程设计之乐曲程序源代码...
    武汉理工大学计算机学院 汇编语言课程设计之乐曲程序源代码-Wuhan Polytechnic University computer science curriculum design language compilation of musical source code
    2023-04-13 02:50:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载