-
编号为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
-
OA 系统JAVA版的
学习用的感觉不错
OA 系统JAVA版的
学习用的感觉不错-OA system using JAVA version of the study
- 2022-09-16 20:30:03下载
- 积分:1
-
This is an example of VC thread, simple and intuitive for learning
这是一个VC的线程实例,简单直观,适合学习-This is an example of VC thread, simple and intuitive for learning
- 2022-12-17 11:50:05下载
- 积分:1
-
各种排序算法,包括希尔算法,快速排序,堆排序
各种排序算法,包括希尔算法,快速排序,堆排序-A variety of sorting algorithms, including the Hill algorithm, quick sort, heap sort
- 2023-01-08 00:30:03下载
- 积分:1
-
The first time, the Provisional contains some source code. There is nothing that...
第一次来,临时载点儿源码。没有什么说明,就为自己能下一点儿源码而来。
如果真有所收获,我以后就常来这儿,就我自己的源码整理后在上传。-The first time, the Provisional contains some source code. There is nothing that they can for the next bit from the source. If the gain, I ll come here often on my own after finishing uploading source.
- 2022-11-10 15:10:03下载
- 积分:1
-
WinCE下的媒体播放器的源代码控制
WINCE 下的Media Player 播放器控制源代码-WINCE the Media Player Player source code control
- 2023-03-16 14:30:03下载
- 积分:1
-
vb反弹连接源码
vb source code rebound Connection
vb反弹连接源码
vb source code rebound Connection-vb source code rebound to connect vb source code rebound Connection
- 2022-05-08 12:55:58下载
- 积分:1
-
程序功能: 1.快速启动应用程序,主要是使用热键。还可以让程序定时启动。 2.锁定计算机。在98下面完全奏效,在2000xp下面不能完全有效。支持定时锁定、启动...
程序功能: 1.快速启动应用程序,主要是使用热键。还可以让程序定时启动。 2.锁定计算机。在98下面完全奏效,在2000xp下面不能完全有效。支持定时锁定、启动锁定。 3.定时提醒。 4.关机 5.关闭由本程序启动的子进程,并可以查看他们的进程信息。 6.保护本程序不被非法关闭。 FastRun.exe:主应用文件 Frpo.exe:后台保护程序 msgdll.dll:导出一个自己画的messagebox的动态连接库-procedures functions : 1. Quick Start applications, primarily using hotkey. It can also allow the procedure regularly launched. 2. Lock computer. 98 Below in Congress, in 2000 xp below not completely effective. Support regular lock, lock activated. 3. Timing reminded. 4. Off 5. Close by the commencement of the children, and can view their information process. 6. Protection of the procedures are not being closed. FastRun.exe : main application files Frpo.exe : background msgdll.dll protection program : a painted himself derived messageBox the Dynamic Link Library
- 2023-09-02 11:10:03下载
- 积分:1
-
基于osg的三角网生成
C++实现了 对于离散点的等值线绘制,三角网的显示,实现了Delaunay三角网的生长算法。在VC++6.0环境下编译 In VC++ 6.0 compiler environment生成TIN类,不规则三角网,VC under TIN generation
- 2022-01-26 02:32:01下载
- 积分:1
-
折半插入排序相对来说要比冒泡插入排序效率要高,是一种思想。...
折半插入排序相对来说要比冒泡插入排序效率要高,是一种思想。-Binary insertion sort insertion sort, relatively speaking than the bubble speed, is a kind of thinking.
- 2022-04-02 02:00:34下载
- 积分:1