登录
首页 » 数据结构 » 设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列...

设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列...

于 2023-03-09 发布 文件大小:550.00 B
0 146
下载积分: 2 下载次数: 1

代码说明:

设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。-something like Joseph problem

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

发表评论

0 个回复

  • (一) 编写一个程序LAGO7
    (一) 编写一个程序LAGO7-1.CPP,实现二叉树的各种运算,并在此基础上设计一个主程序完成如下功能。 (1) 输出二叉树B; (2) 输出二叉树B的深度; (3) 输出H结点的左、右孩子结点值; (4) 输出二叉树B的宽度; (5) 输出二叉树B的结点个数; 输出二叉树B的叶子结点个数 -(A) to prepare a program LAGO7-1.CPP, to achieve a variety of binary operations, and on this basis, design a main program performs the following functions. (1) output binary tree B (2) The output of a binary tree B of depth (3) The output of H nodes left and right child node value (4) outputs a binary tree B, width (5) output node B, the number of binary trees (6) outputs a binary tree B, the number of leaf nodes
    2023-02-06 07:20:04下载
    积分:1
  • VB实现的三
    VB实现的三层结构的整体教学实例(少见)
    2023-05-28 04:00:04下载
    积分:1
  • VCL 到 FireMonkey
    FMX 文件是火猴子等效的 Delphi 的 VCL DFM 表单文件的他们确定的布局和在设计时添加到窗体的对象的属性。 如果你从零开始火猴子形式你将可能永远不会有兴趣 FMX 文件的内容,但如果你有一个 VCL 窗体代码,您希望将它移植到火猴子的应用程序是很舒服,因为很多的代码尽可能跨和理想的情况是这包括窗体布局。因为火猴子可视对象和它们的属性都是在名称中非常相似的等效的 VCL 组件很多可以自动移植。
    2023-02-18 01:20:04下载
    积分:1
  • 魔方阵完整算法(内含详细解释) 包括奇和偶 在VC6.0下运行...
    魔方阵完整算法(内含详细解释) 包括奇数和偶数 在VC6.0下运行-Magic matrix integrity algorithm (containing detailed explanation), including odd and even run in VC6.0
    2022-04-30 00:56:44下载
    积分:1
  • Manager: In this system there is only one administrator, that is, the system adm...
    管理员:在此系统中只有一个管理员,即系统管理员。具有一般用户所没有的权限,即具有管理一般用户、试题管理功能。 管理员可以向题库中添加各种类型且符合要求的试题,也可以对它们进行修改和删除。同时,管理员也能对科目、用户、考试记录等数据进行管理。 试题管理-Manager: In this system there is only one administrator, that is, the system administrator. General users do not have permission, that is, with the management of general users, test management capabilities. Administrators can add to the questions of all types and meet the requirements of the test, can also modify and delete them. At the same time, administrators can also subjects the user, the examination of data records management. Test Management
    2022-05-17 02:44:48下载
    积分:1
  • 还是进程调度,不过用不同的方法进行编写,里面有简要的流程图和实验目的和要求。...
    还是进程调度,不过用不同的方法进行编写,里面有简要的流程图和实验目的和要求。-or scheduling process, but use different methods for preparation, there are brief flowchart and experimental purposes and requirements.
    2022-05-25 04:23:40下载
    积分:1
  • 一元多项式相加算法
    一元多项式相加数据结构算法-sum of one yuan polynomial algorithm data structure
    2023-03-02 03:30:04下载
    积分:1
  • 这个是经典算法实现,是一些不错的算法
    这个是数据结构经典算法实现,是一些不错的算法-shu ju jie gou jing dian suan fa shi xian
    2022-06-21 22:44:35下载
    积分:1
  • Data structure course first experiment requirements: 1. Base class and derived c...
    数据结构课程第一次实验 要求:1.基类和派生类的定义和实现(.h .cpp) 2.+ 运算符重载 3.
    2023-07-18 00:15:02下载
    积分:1
  • uart 块核心
    uart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreuart 块 coreu
    2023-01-14 08:25:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载