登录
首页 » 汇编语言 » 建立循环链表,实现选猴王的程序:输入N只猴子,从第一只猴子开始报数(M),数到m的那只猴子就推出,如此循环,剩下的最后一直猴子就是猴王...

建立循环链表,实现选猴王的程序:输入N只猴子,从第一只猴子开始报数(M),数到m的那只猴子就推出,如此循环,剩下的最后一直猴子就是猴王...

于 2022-04-02 发布 文件大小:660.00 B
0 109
下载积分: 2 下载次数: 1

代码说明:

建立循环链表,实现选猴王的程序:输入N只猴子,从第一只猴子开始报数(M),数到m的那只猴子就推出,如此循环,剩下的最后一直猴子就是猴王-Circulation list set up, implementation procedures for the election of the King: Enter the N monkeys, monkeys from the first start off (M), only a few of the m Monkey on the introduction of such a cycle has been the last remaining Monkey is a monkey Wang! !

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

发表评论

0 个回复

  • 设计要求: 出于不同目的的旅客对交通工具有不同的要求.例如,因公出差的旅客希望在旅途中的时间尽可能短,出门旅游的游客则期望旅费尽可能省,而老年旅客则要求中...
    设计要求: 出于不同目的的旅客对交通工具有不同的要求.例如,因公出差的旅客希望在旅途中的时间尽可能短,出门旅游的游客则期望旅费尽可能省,而老年旅客则要求中转次数最少.编制一个全国城市间的交通咨询程序,为旅客提供两种或三种最优决策的交通咨询. //请保留此信息,谢谢 1.需求分析: (1)提供对城市信息进行编辑(如添加或删除)的功能. (2)城市之间有两种交通工具:火车和飞机.提供对列车时刻表和飞机航班进行编辑(增设或删除)的功能. (3)提供两种最优决策:最快到达或最省钱到达.全程只考虑一种交通工具. -design requirements : For different purposes to transport passengers have different requirements. For example, on official business travelers in the journey time as short as possible away tourists expect possible travel provinces, and elderly passengers asked the least number of transit. establishment of a national inter-city traffic advisory proceedings, for the visitors two or three best decision of the Transport Advisory.// Please keep this information, I would like to thank one. demand analysis : (1) to provide information on the city for editing (such as add or delete) function. (2) Town between the two modes : Train and aircraft. Schedules for the train and flights for editing (created or deleted) function. (3)
    2022-03-23 02:35:30下载
    积分:1
  • 详见压缩文件,关于屏幕窗口程序的
    详见压缩文件,关于屏幕窗口程序的汇编语言-See compressed file, a window on the screen of the assembly language program
    2022-02-02 03:22:37下载
    积分:1
  • 在集成电路中,通常采用T型解码网络实现数字量往模拟的转换,再利用运算放大器完成模拟电流变为模拟电压的转换。所以,要把一个数字量变为模拟电压,实际上需要两个环节,...
    在集成电路中,通常采用T型解码网络实现数字量往模拟的转换,再利用运算放大器完成模拟电流变为模拟电压的转换。所以,要把一个数字量变为模拟电压,实际上需要两个环节,先把数字量变为模拟电流,这是由D/A转换器完成的;再将模拟电流变成模拟电压,这是由运算放大器完成的。有时D/A转换器芯片只包含前一个环节,有些D/A转换器则包含两个环节,用前一种芯片时,需要外接运算放大器才能得到模拟电压。-In integrated circuits, the usual T-decode digital networks to analog conversion, and then complete the simulation of the use of op-amp current into the analog voltage conversion. Therefore, it is necessary to become a digital simulation of voltage, in fact, need two links, first into a digital simulation of currents, this is determined by D/A converters completed then simulate current into the analog voltage, this is determined by computing completed amplifier. Sometimes D/A converter chip contains only a part before, some D/A converter includes two aspects, before a chip, the need for external op-amp voltage can be simulated.
    2022-03-04 04:10:59下载
    积分:1
  • 红外键值码LED显示,用于C51程序,解码遥控器
    红外键值码LED显示,用于C51程序,解码遥控器编码 -IR key code LED display for the C51 process, decoding the remote control code
    2022-03-24 08:01:57下载
    积分:1
  • 微机接口课程设计 数字钟实验 源代码 8255 8259 led显示 键盘
    微机接口课程设计 数字钟实验 源代码 8255 8259 led显示 键盘-Computer Interface curriculum design, digital clock experiments show the source code 8255 8259 led keypad
    2022-06-14 09:42:41下载
    积分:1
  • 先输入一个关键字符串,然后输入一个句子 找出关键字符串在句子中位置...
    先输入一个关键字符串,然后输入一个句子 找出关键字符串在句子中位置 -Input a key string, and then enter the string a sentence to identify key positions in the sentence
    2022-02-05 08:52:55下载
    积分:1
  • 显示led数码管的控制程序
    显示led数码管的控制程序-show led to the digital control procedures governing
    2022-03-02 04:32:12下载
    积分:1
  • Wang Shuang assembly language courseware, which is slides of both the book, comp...
    王爽汇编语言的课件,里面全是幻灯片,全书的都有,学习王爽汇编的人不要错过-Wang Shuang assembly language courseware, which is slides of both the book, compiled by Wang Shuang learning not to be missed
    2022-03-04 13:18:34下载
    积分:1
  • firstwindow
    为汇编初学者提供的保护模式下编程使用的代码,用来创建一个简单的窗口-firstwindow
    2022-11-16 13:45:08下载
    积分:1
  • 2022-02-01 05:37:01下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载