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

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

于 2022-04-24 发布 文件大小:739.00 B
0 160
下载积分: 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 个回复

  • dodes
    说明:  LDPC码在基于BP (Belief Propagation) 的迭代译码相结合的条件下具有逼近Shannon 限的性能,(Under the condition of combining iterative decoding based on BP (Belief Propagation), LDPC codes have the performance of approximating the Shannon limit.)
    2019-04-01 08:54:14下载
    积分:1
  • FFTOcean
    基于FFT的海面模拟。能够实现海面的复制,波浪模拟效果较好。(FFT-based simulation of the sea. Be able to achieve replication of the sea, wave simulation better.)
    2020-07-01 09:40:02下载
    积分:1
  • NRF24L01AND1602
    搞了十几天,终于实现了无线模块NRF24L01可以发送和接收到一串字符了,本程序含发送程序,和接收程序,单片机用AT89S52,把显示的字符串显示在1602上(Out of the 10 days, finally achieving a wireless module NRF24L01 can send and receive a string of characters, and this procedure with sending program, and receive program, microcontroller use AT89S52, the display on the string displayed in the 1602)
    2010-05-20 00:35:31下载
    积分:1
  • XListCtrl_demo-20140610
    主要是完成Listctr的封装,和对于xlistctrl 的一个实例程序 (The main package is completed Listctr)
    2014-06-10 21:58:28下载
    积分:1
  • SDKDDKVer
    在用C++编程时可能需要使用的头文件,能用,挺好(Header files that may need to be used when programming in C++ can be used, very good)
    2020-07-14 16:48:52下载
    积分:1
  • C-and-Pointers
    C和指针,用于介绍C中指针的用法,是一本不可多得的书籍(C-and-Pointers)
    2010-10-23 14:55:39下载
    积分:1
  • 程序
    msp430f5529ti的大量的官方例程(5529 Official Routine)
    2020-06-20 20:00:02下载
    积分:1
  • stm32二值化程序
    2023-09-04 05:05:04下载
    积分:1
  • Orde-left--right--
    顺序表奇数在左偶数在右,的数据结构算法,matlab(Order table an odd number in the left an even number in the right, the data structure algorithms, matlab)
    2012-04-29 10:57:32下载
    积分:1
  • 定时器TimerT1
    MFC 直接使用setTimer c++ 中,也有类似的定时器:CreateWaitableTimer、SetWaitableTimer 其实是windows API(MFC uses setTimer directly In C++, there are similar timers: CreateWaitableTimer, SetWaitableTimer is actually the Windows API.)
    2018-09-27 22:41:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载