-
编号为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
-
C++ 24点游戏
游戏名称:24点游戏,游戏类型:益智,要求结果等于二十四
- 2023-01-13 03:40:04下载
- 积分:1
-
Button Control
Button Control
- 2022-05-22 16:38:27下载
- 积分:1
-
网格 2D 划分 用于分割图像,剖析图像,并对图像进行进一步的处理...
网格 2D 划分 用于分割图像,剖析图像,并对图像进行进一步的处理-2D mesh division
- 2023-08-14 05:55:04下载
- 积分:1
-
小计算器
一个MFC的简单小程序,利用多个按钮控件,可实现一般加减乘除运算
- 2022-03-21 19:23:03下载
- 积分:1
-
此代码是用在被成为数学魔法师的MAPLE软件上运行的。此代码清晰的描述了拉普拉斯的基本变换。...
此代码是用在被成为数学魔法师的MAPLE软件上运行的。此代码清晰的描述了拉普拉斯的基本变换。-This code is used in the magician to become the MAPLE mathematical software running. This code clearly describes the basic Laplace transform.
- 2022-03-23 11:58:22下载
- 积分:1
-
珠宝行业在Pocket pc上用于报价的销售软件.
珠宝行业在Pocket pc上用于报价的销售软件.-jewelry industry on the Pocket PC for the Price of selling software.
- 2022-08-23 03:27:53下载
- 积分:1
-
WPF多点触控简单示范程序
VS2012环境编写,WPF下的触控演示程序.可以对WPF触控有个简单的了解,也有助于了解TUIO~可以达到显示器硬件支持的最大触点数.触摸后会得到每个触点的ID,生成跟随触点移动的有色框,框中显示触点ID信息.有色框随手指移动而移动,抬起后消失.
- 2022-01-26 02:15:55下载
- 积分:1
-
Oh 21:00, small game, for C language casually, many Bug huh huh welcome correcti...
呵呵 21 点 ,小游戏,C语言随便作的,呵呵 很多 Bug 欢迎指正 呵呵 在这 凑字数了快-Oh 21:00, small game, for C language casually, many Bug huh huh welcome correction in the number of words that got faster
- 2022-07-09 06:52:42下载
- 积分:1
-
C#求爱表白小程序第二版(I LOVE YOU) C#写的一个求爱表白小程序(第二版本加源码).打开后会出现一个个的小桃心,最后形成一个I LOVE YOU的形...
C#求爱表白小程序第二版(I LOVE YOU) C#写的一个求爱表白小程序(第二版本加源码).打开后会出现一个个的小桃心,最后形成一个I LOVE YOU的形状.在第一版本上加入烟花.-C# courtship to declare the second edition of a small program (I LOVE YOU) C# courtship confession written by a small program (the second version of the Canadian source). Opens the Xiaotao will appear one by one heart, resulting eventually in the shape of an I LOVE YOU. In to add a version of the fireworks.
- 2022-03-10 03:33:34下载
- 积分:1