-
编号为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
-
能删除自身代码的源码,可以删除自己的进程,然后从磁盘删除文件...
能删除自身代码的源码,可以删除自己的进程,然后从磁盘删除文件-Can delete their own source code, you can delete their own process, and then delete the file from the disk
- 2022-03-05 11:55:56下载
- 积分:1
-
嵌入式wince,使用evc编程,文件包含整个工程文件
嵌入式wince,使用evc编程,文件包含整个工程文件-Embedded wince, using evc programming, the whole project file contains a document
- 2022-02-28 19:39:54下载
- 积分:1
-
学生信息管理系统,基本新管理使用,通过文件储存信息。
学生信息管理系统,基本新管理使用,通过文件储存信息。-Student Information Management System, the basic use of the new management, the adoption of document storage information.
- 2022-09-14 10:10:04下载
- 积分:1
-
DAO多线程的技巧
DAO多线程的技巧-DAO multithreading techniques
- 2022-09-27 06:35:02下载
- 积分:1
-
Through a given intersection point coordinates, curve half a catty, slow long, c...
通过给定交点坐标、曲线半斤和缓长,计算各曲线要素和主点里程。-Through a given intersection point coordinates, curve half a catty, slow long, computing elements and the main point of the curve mileage.
- 2022-07-04 05:26:45下载
- 积分:1
-
Test Device i2c
测试芯片i2c对存储器位置的写入和读取。可以实现对任何数据的读写而不仅仅是测试数据。
- 2023-06-18 15:50:03下载
- 积分:1
-
cuda product of sums algorithm on the gpu
cuda product of sums algorithm on the gpu
- 2022-09-21 23:40:03下载
- 积分:1
-
在Matlab环境下生成dll再在vb中调用
在Matlab环境下生成dll再在vb中调用-in Matlab environment generated dll again in vb Calling
- 2022-02-01 09:52:56下载
- 积分:1
-
i.MX27_ADS_BSP_15_Windows_Embedded_CE_6_Reference_Manual I.MX27 use the latest d...
i.MX27_ADS_BSP_15_Windows_Embedded_CE_6_Reference_Manual I.MX27 最新的WINCE6.0 BSP使用说明文档-i.MX27_ADS_BSP_15_Windows_Embedded_CE_6_Reference_Manual I.MX27 use the latest documentation WINCE6.0 BSP
- 2023-07-15 07:25:04下载
- 积分:1