-
编号为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 #邮件程序写的很好很好很好很好很好。
一个不错的用C#写的发送邮件程序很不错很不错很不错很不错很不错-a good C# mail written procedures very good very good very good very good very good
- 2022-08-24 14:50:41下载
- 积分:1
-
vc++6.0实效编程百例的源码,非常好的一本书
vc++6.0实效编程百例的源码,非常好的一本书-vc++6.0 100 cases of the effectiveness of programming
- 2023-01-26 03:25:06下载
- 积分:1
-
Web网站架构设计与部署的课件
网站架构与部署的介绍
网站架构设计的目标与要求
网站架构设计与部署的原则与方法
案例分析
相关阅读...
Web网站架构设计与部署的课件
网站架构与部署的介绍
网站架构设计的目标与要求
网站架构设计与部署的原则与方法
案例分析
相关阅读
-Web site architecture design and deployment of courseware
- 2022-07-23 07:41:05下载
- 积分:1
-
4×4的小键盘扫描程序
希望能看到更好的扫描算法
大家共学习之...
4×4的小键盘扫描程序
希望能看到更好的扫描算法
大家共学习之-4 × 4 small keyboard scanner would like to see a better scan algorithm
- 2022-05-30 00:57:53下载
- 积分:1
-
放大和缩小图片源码, 放大和缩小图片源码
放大和缩小图片源码, 放大和缩小图片源码-failed to translate
- 2022-02-03 01:23:41下载
- 积分:1
-
VC6 used in the database development kits, containing test case
在VC6中使用的数据库开发包, 含测试例子-VC6 used in the database development kits, containing test case
- 2022-09-05 06:30:03下载
- 积分:1
-
一个关于开方的c++源代码,自己没事写的,希望大家看看相互学习...
一个关于开方的c++源代码,自己没事写的,希望大家看看相互学习-On the prescription of a c++ source code that he wrote nothing, and hope that we see and learn from each other
- 2023-08-06 19:50:03下载
- 积分:1
-
服务 客户端 socket
服务端为win32服务程序, 用cmd命令安装 jrserver -i 或 jrserver -u删除,客户端与服务端采用socket连接,
客户端用配置文件保存服务器端口和地址和登录账号,服务装在其他电脑上需配置IP,服务端可以连接sql数据库,需要修改连接字符
- 2022-03-19 20:12:41下载
- 积分:1
-
增加串口,主要是wince方面的, 大家可以学习一下,给大家一个学习参考,...
增加串口,主要是wince方面的, 大家可以学习一下,给大家一个学习参考, -increase was mainly wince regard, we can learn from this for everyone to a study reference, Ha ha Ha ha
- 2022-03-16 03:04:46下载
- 积分:1