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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 涵盖多种算法,非常全面,可以下载到硒…
    包罗各种算法,相当全面,可以下载看看,具体有单元加、求进制、汉诺塔、底层编程、小写数字转为大写数字、数据结构、算法基础等等。-Cover a variety of algorithms, is very comprehensive and can be downloaded to see the specific unit plus, and band, Tower of Hanoi, the underlying programming, lower case to upper case the number of figures, data structures, algorithms, etc. basis.
    2022-01-22 13:32:15下载
    积分:1
  • MFC实现的图书馆管理系统,希望对大家有用。
    MFC实现的图书馆管理系统,希望对大家有用。-MFC library management system to achieve the hope for all of us.
    2022-04-16 18:48:04下载
    积分:1
  • 我自己写的值分析课程设计的算法,这里是值拟合的部分。
    我自己写的数值分析课程设计的算法,这里是数值拟合的部分。-I wrote it myself numerical analysis courses designed algorithm, which is part of the numerical fitting.
    2022-03-20 19:46:16下载
    积分:1
  • 病人管理系统
    病人管理系统是用来保持病人预约和病史。
    2022-02-15 00:20:35下载
    积分:1
  • 相对于实验一,新增了2个类。 Class Listing vector<Advertisement*>. Class Group vect...
    相对于实验一,新增了2个类。 Class Listing vector. Class Group vector. 使用到了向量。增强了大家对STL向量容器,以及实现所给的声明函数。 压缩包里面有代码,指导书,以及Apache服务器。-Prerequisites: Students should have mastered the following prerequisite skills. C++ Class Specification- Produce C++ class implementations Standard Template Library- Knowledge of the STL, particularly sequential containers and iterators Goals: This assignment is designed to reinforce your understanding and use of the STL vector container and the Standard Template Library. Outcomes: Students successfully completing this assignment would master the following outcomes. Produce C++ class implementations given class declarations
    2022-07-21 10:24:05下载
    积分:1
  • The software for small student information management system that provides the s...
    本软件为小型学生信息管理系统,可提供系统管理员的添加、删除、修改,学生信息添加、删除、修改,学生成绩添加、删除、修改功能,还提供简单的查询功能,包括按学生信息的学号、姓名、学院、专业等条件查询,按学生课程的编号、名称、成绩查询学生成绩信息。-The software for small student information management system that provides the system administrator to add, delete, modify, student information to add, delete, modify, student achievement to add, delete, modify features, it also provides simple query capabilities, including by students of information Student ID, name, college, professional conditions, such as query, according to student course number, name, information on student achievement results queries.
    2022-03-14 13:18:57下载
    积分:1
  • dbf转化为access库,非常好用的
    dbf数据转化为access数据库,非常好用的-dbf data into database access, a very handy
    2022-01-25 21:44:22下载
    积分:1
  • Nearest neighbor search algorithm, k_tree algorithm for most of the Chinese lite...
    最近邻搜索算法,k_tree算法的大部分中文文献-Nearest neighbor search algorithm, k_tree algorithm for most of the Chinese literature
    2022-01-26 06:16:31下载
    积分:1
  • 自创的算法,输入表达式,建立二叉树的程序,然后输出前缀中缀后缀表示法,利用的对表达式的分割与递归实现输入,同时这也是一个完整的波兰式转换程序,相当稳健...
    自创的算法,输入表达式,建立二叉树的程序,然后输出前缀中缀后缀表示法,利用的对表达式的分割与递归实现输入,同时这也是一个完整的波兰式转换程序,相当稳健-own algorithm, the importation of expression, the establishment of the binary tree and then output the suffix prefix which is made up of the method, using the right expression Segmentation and recursive input, and this was also a Polish integrity of the conversion process, sound
    2022-01-25 21:42:04下载
    积分:1
  • 各种算法的实现
    数据结构各种算法的实现-various data structure of the algorithm to achieve!
    2022-05-25 11:03:18下载
    积分:1
  • 696518资源总数
  • 106245会员总数
  • 18今日下载