登录
首页 » 电子书 » 约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一...

约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一...

于 2022-08-14 发布 文件大小:304.03 kB
0 247
下载积分: 2 下载次数: 1

代码说明:

约瑟夫(Joeph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序。-Joseph (Joeph) a description of the problem is: numbered 1,2, ..., n, n individuals sitting clockwise circle, each holding a password (positive integer). An optional start a positive integer as the number of reported upper limit of m, from the first person to embark on the clockwise direction starting from a reported sequence number, to report the number of m stop reported. Those who reported m out of the column, his password as the new m value, from his home in a clockwise direction on the next person started to re-reported from a few, and so on, until all of the column until all the up. Try a program designed to find out the column order.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 查表法在温度遥测中的应用。计算机非线性存储法实现温度传感器线性化...
    查表法在温度遥测中的应用。计算机非线性存储法实现温度传感器线性化-Look-up table method in the temperature telemetry applications. Computer non-linear storage method to achieve temperature sensor linearization
    2022-02-10 13:35:30下载
    积分:1
  • 许多人在掌握Java的基本知识后,都希望通过进行一系列的课程设计来巩固和提高Java编程技术,本就是针对这一目的编写。本不仅可以作为信息专业Java课程...
    许多人在掌握Java的基本知识后,都希望通过进行一系列的课程设计来巩固和提高Java编程技术,本书就是针对这一目的编写。本书不仅可以作为电子信息专业Java课程设计的教材,也适合作为撰写毕业论文的参考书。 本书以15个课程设计题目为框架,从各个方面介绍了Java在应用系统开发和网络开发中的技巧。各个课程设计题目相互独立,可以从任何一个课程设计题目开始阅读本书。每个课程设计题目都给出了详细的设计步骤,包括设计内容、总体设计、具体设计、软件发布、课程设计作业等。-many people in the mastery of the basic knowledge of Java. all hope that through a series of courses designed to strengthen and enhance the Java programming technology. The book was prepared for this purpose. The book not only as an electronic information professionals Java curriculum design materials, also suitable as a reference book written thesis. The book to 15 courses a design as a framework, From all aspects of Java application systems development and network development skills. Various topics of mutual curriculum design and become independent from any one subject curriculum design started reading the book. Each course will have a design is a detailed design steps, including the content, design, the specific design, software publishing, curriculum d
    2022-03-19 15:26:20下载
    积分:1
  • 此文档是瑞典的KWP2000的标准,规定了物理层、数据链路层和应用层的要求
    此文档是瑞典的KWP2000的标准,规定了物理层、数据链路层和应用层的要求-This document is a Swedish KWP2000 standards, provides for the physical layer, data link layer and application layer requirements
    2022-02-10 17:41:31下载
    积分:1
  • JMX in Action JMX in Action
    JMX in Action -JMX in Action JMX in Action
    2022-06-03 13:02:43下载
    积分:1
  • OpenGL的一本很不错的教材,原著 Jeff Molofee (NeHe),这个版本翻译的很不错。后面还附有源码。...
    OpenGL的一本很不错的教材,原著 Jeff Molofee (NeHe),这个版本翻译的很不错。后面还附有源码。-OpenGL,a very good teaching materials, original Jeff Molofee (NeHe), this version of the translation is pretty good. Right behind with source code.
    2022-12-05 01:05:03下载
    积分:1
  • 它说什么代码
    el codigo dice lo que hace
    2022-02-02 09:32:01下载
    积分:1
  • The celebrated Kalman filter, rooted in the state
    The celebrated Kalman filter, rooted in the state-space formulation or linear dynamical systems, provides a recursive solution to the linear optimal filtering problem. It applies to stationary as well as nonstationary environments. The solution is recursive in that each updated estimate of the state is computed from the previous estimate and the new input data, so only the previous estimate requires storage. In addition to eliminating the need for storing the entire 1 past observed data, the Kalman filter is computationally more efficient than computing the estimate directly from the entire past observed data at each step of the filtering process.
    2022-07-09 20:18:54下载
    积分:1
  • 这是一本 是美国计算机专业研究生的教材 绝对是教材
    这是一本电子书 是美国计算机专业研究生的教材 绝对是教材-This is the textbook of Computer Science for master degree students in America.
    2023-01-03 12:20:12下载
    积分:1
  • 重点介绍了使用ASP.NET 2.0(C#)技术开发Web 2.0时代的热门网络应用系统(如RSS、Blog、Tags、Web Service、BBS、XM...
    本书重点介绍了使用ASP.NET 2.0(C#)技术开发Web 2.0时代的热门网络应用系统(如RSS、Blog、Tags、Web Service、BBS、XML、Ajax、WIKI等)的方法,以及开发这些系统所需的ASP.NET 2.0预备知识-This book focuses on using ASP.NET 2.0 (C#) technology development Web 2.0 era of popular web applications (such as RSS, Blog, Tags, Web Service, BBS, XML, Ajax, WIKI, etc.) methods, and the development of these systems prior knowledge required for ASP.NET 2.0
    2022-01-22 01:04:47下载
    积分:1
  • Geoda实用教程的中文版,对初学Geoda对地图操作分析的学员帮助较大。...
    Geoda实用教程的中文版,对初学Geoda对地图操作分析的学员帮助较大。-Practical Course Geoda the Chinese version of the map operation for beginners Geoda analysis to help older students.
    2022-02-04 21:03:58下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载