登录
首页 » C# » 排序系统设计 功能:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,...

排序系统设计 功能:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,...

于 2022-04-24 发布 文件大小:739.00 B
0 119
下载积分: 2 下载次数: 1

代码说明:

排序系统设计 功能:设编号为1,2,3,……,n的n(n>0)个人按顺时针方向围坐一圈,每个人持有一个正整数密码。开始时任选一个正整数做为报数上限m,从第一个人开始顺时针方向自1起顺序报数,报到m是停止报数,报m的人出列,将他的密码作为新的m值,从他的下一个人开始重新从1报数。如此下去,直到所有人全部出列为止。令n最大值取30。要求设计一个程序模拟此过程,求出出列编号序列。 -Sorting system design features: Let numbered 1,2,3, ... ..., n of the n (n> 0) individuals sitting clockwise circle, each person holds a positive integer password. The beginning of a positive integer as reported optional maximum number of m, starting from the first person in a clockwise direction starting from a sequence reported the number of m is to stop the newspaper to report the number of people who reported m out of the column, his password as a new m value, the next person start from his re-reported from a number of. If things go on, until all of the column until all the up. Make n take the maximum 30. To design a program to simulate this process, find out the column number sequence.

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

发表评论

0 个回复

  • 滑动窗口协议模拟
    说明:  MFC实现滑动窗口协议是一个基于对话框的程序来模拟协议工作过程及原理,分发送端和接收端,开始时设置发送窗口和接收窗口及重传计时器等相关参数,点击开始发送即可开始模拟数据发送过程。设置出错帧时,可以随机产生错误帧,也可以手动指定错误帧。(The sliding window protocol implemented by MFC is a dialog-based program to simulate the working process and principle of the protocol, distribute the sender and receiver, set the relevant parameters such as sending window, receiving window and retransmit timer at the beginning, and then start to simulate the data transmission process by clicking on the start of sending. When an error frame is set, the error frame can be generated randomly, or the error frame can be specified manually.)
    2020-10-19 16:17:25下载
    积分:1
  • Desktop
    绘制entity,visual studio下的MFC下的openGL下的程序(render entity)
    2013-10-25 20:58:54下载
    积分:1
  • 基于iap15的电压频率采集设备
    电压频率采集设备由“电压、频率采集设备”能够实现测量信号频率和电压,修改、储存工作参 数,记录、查询事件等功能,系统由按键单元、ADC 采集单元、显示单元、储存单元组成。 电压频率采集设备由“电压、频率采集设备”能够实现测量信号频率和电压,修改、储存工作参 数,记录、查询事件等功能,系统由按键单元、ADC 采集单元、显示单元、储存单元组成。
    2022-01-28 20:42:57下载
    积分:1
  • Uart
    s3c2440下的 UART程序 ADS编译 (s3c2440 under the ADS compiler s3c 2440 UART procedures of the RTC real time clock procedures ADS compiler)
    2013-09-28 14:20:59下载
    积分:1
  • 12f508
    说明:  pic12f508 visual led
    2020-06-20 03:00:01下载
    积分:1
  • C#+SQL sever图书管理系统源码(含数据库以及课程设计文档)
    C#+SQL sever图书管理系统源码(含数据库以及课程设计文档)
    2019-11-06下载
    积分:1
  • m
    说明:  通过opencv与visualc++加载一副图像,在c++中读取图像(By loading an image opencv with visualc++, to read images in c++)
    2013-07-30 09:21:55下载
    积分:1
  • V1.0电机驱动TIM14
    使用stm32f407zgt6的tim14定时器输出pwm波(Output PWM wave with tim14 timer of stm32f407zgt6)
    2020-06-18 08:20:02下载
    积分:1
  • C#网络军旗
    C#网络军旗,俩人对战,网络连接,棋谱读入,军旗布置,战斗,命令转送等。
    2022-04-12 16:04:03下载
    积分:1
  • age
    source codigo wyd v 7,54 edicao em c++ visual studio 2017
    2020-06-19 00:40:01下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载