-
演示程序,数字应该是任意的,我们必须先输入…
本演示程序中,人数n应为任意的,首先应输入一个值赋给初始报数上限m,程序应能自动保存出列人的序号和将出列的人所持的密码赋给m,再次作为报数上限,如此循环,直至所有人都出列为止。-The demonstration program, the number n should be arbitrary, we must first enter a value assigned to the initial reported that the maximum number of m, the procedure should be able to automatically save a list of the serial number of people and held out the password assigned to m, again reported as the maximum number of such cycles, until all that far out.
- 2022-03-07 19:25:59下载
- 积分:1
-
约瑟夫环:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自...
约瑟夫环:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。编程打印出列顺序。-Josephus : No. 1, 2, 3, ..., n n clockwise direction by individuals sitting around a circle, each holding a password (positive integers). An optional started as a positive integer reported limits on the number of m, from the first individuals to embark on the clockwise direction since the beginning of a sequence number off, the report m stop. M reported out of the list of his password as a new value m, from a clockwise direction in the next one started from a newspaper a few, like that, until the total of all listed so far. Programming print out the order.
- 2022-10-30 01:40:03下载
- 积分:1
-
GTS300汽车功放电路原理图 PDF格式
GTS300汽车功放电路原理图 PDF格式-GTS300 car amplifier circuit schematics PDF format
- 2022-02-20 20:03:33下载
- 积分:1
-
用KALMAN滤波方法的雷达检测轮船、飞机、导弹等的航迹分析,源程序分析。...
用KALMAN滤波方法的雷达检测轮船、飞机、导弹等的航迹分析,源程序分析。-Kalman filtering method using the estimated target track of the Matlab source
- 2022-01-21 21:25:16下载
- 积分:1
-
a very common procedure, the database application, prepared by PB
很普通的一个程序,数据库的应用,PB编写的-a very common procedure, the database application, prepared by PB
- 2022-06-18 01:06:57下载
- 积分:1
-
c编程技巧100之6
c编程技巧100之6-100 of 6
- 2023-02-27 01:15:03下载
- 积分:1
-
用python写贪吃蛇
这两天在网上看到一张让人涨姿势的图片,图片中展示的是贪吃蛇游戏, 估计大部分人都玩过。但如果仅仅是贪吃蛇游戏,那么它就没有什么让人涨姿势的地方了。 问题的关键在于,图片中的贪吃蛇真的很贪吃XD,它把矩形中出现的食物吃了个遍, 然后华丽丽地把整个矩形填满,真心是看得赏心悦目。作为一个CSer, 第一个想到的是,这东西是写程序实现的(因为,一般人干不出这事。 果断是要让程序来干的)第二个想到的是,写程序该如何实现,该用什么算法? 既然开始想了,就开始做。因为Talk is cheap,要show me the code才行。
- 2022-08-07 15:08:37下载
- 积分:1
-
QC software, a very user
QC软件,非常好用的一个软件,
可自动给QC洗澡喂食-QC software, a very user-friendly software that can automatically to the QC bath feeding
- 2022-05-25 00:26:11下载
- 积分:1
-
是一本关于sql2000 学习的好的丛书,它详细并且明了的介绍了数据库的使用和,安装,该书的基础知识讲解的十分详细,而且例子十分生动,是一本学习的好书。...
是一本关于sql2000 学习的好的丛书,它详细并且明了的介绍了数据库的使用和,安装,该书的基础知识讲解的十分详细,而且例子十分生动,是一本学习的好书。-Is a book about good books to learn sql2000, it detailed and clear introduction to the database to use and installation, the book explaining the basics of the very detailed and very vivid example is a good book to learn.
- 2022-01-24 16:39:13下载
- 积分:1
-
Open source Visual basic POS for small to medium sized companies
Open source Visual basic POS for small to medium sized companies
- 2022-04-07 13:51:46下载
- 积分:1