登录
首页 » c++ » 约瑟夫退圈问题

约瑟夫退圈问题

于 2022-12-22 发布 文件大小:2.49 MB
0 106
下载积分: 2 下载次数: 1

代码说明:

题目要求: 利用循环链表实现约瑟夫退圈问题:n个人(不同id)围成一个圈,从startId(任意数)个开始报数m(任意数)个数,数m的人出列排成新队列,m清零,然后又从下一个人开始数m个数开始,数到m就出列接在新队列尾部,如此重复,直到所有人都出列为止,请输出出列的次序(依次输出出列人员的编号)。

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

发表评论

0 个回复

  • IME_Info
    IME的编程资料.有相关资料和源码~~内容相当丰富(IME programming information. Have relevant information and source ~ ~ content quite rich)
    2008-12-24 14:43:45下载
    积分:1
  • juanjihe
    西安交通大学版信号与系统第一次作业,求数学卷积和C++代码(For convolution and c++ code )
    2012-11-07 12:25:28下载
    积分:1
  • UART
    串口0通信-查询方式实验向串口发送子节数据,并等待数据发送完成,使用查询方式(Serial 0 communication- ways to experiment sub-section to the serial port to send data and wait for the data transmission is complete, use the query mode)
    2013-02-25 10:49:00下载
    积分:1
  • 2-相关系数影像匹配
    相关系数影像匹配,基于相关系数法进行影像的匹配(picmatch this is a code for picmatch)
    2020-10-18 11:17:26下载
    积分:1
  • C#与halcon联合编程
    多模板匹配
    2019-12-14下载
    积分:1
  • IP
    自动采集小说程序,对于建站很有帮助,试试吧(Automatic acquisition novel procedure for the Jianzhan helpful, give it a try)
    2010-06-20 20:39:13下载
    积分:1
  • 机器人stm32F103源代码可上传温度行走距离电压
    说明:  机器人 ,stm32F103源代码,MDK编译器(rebot code for stm32f103 in MDK)
    2020-06-24 06:00:02下载
    积分:1
  • Signal-Processing
    信号处理中的一些变换性质,公式,以及一些定义与适用范围(Some signal processing transforms the nature of the formula, and some of the definitions and scope of application)
    2011-05-05 15:36:27下载
    积分:1
  • IAP15F4K-串口通讯-和校验(中断方式)
    使用单片机实验板,在Keil C开发环境中编写串口发送和接收程序。在串口发送和接收程序中编程增加校验位,使用逻辑分析仪捕捉单片机串口引脚发送和接收数据的波形,并与串口接收和发送的数据进行比较。(Using SCM experiment board, in the Keil C development environment to write serial send and receive program. In the serial sending and receiving program, the program adds the parity bit, and uses logic analyzer to capture the waveform of the data sent and received by the serial port of the microcontroller, and compares it with the data received and sent by the serial port.)
    2017-10-19 20:05:38下载
    积分:1
  • 0
    说明:  1. 阅读C#编程方面的书籍与资料。 2. 使用窗体界面、控件编程。 3. 把图像数据读取到变量或数组中。(1. read C# programming books and materials. 2. use form interface and control programming. 3. read image data into variables or arrays.)
    2018-10-08 20:55:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载