登录
首页 » 算法 » 设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约...

设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约...

于 2022-02-26 发布 文件大小:4.53 kB
0 181
下载积分: 2 下载次数: 1

代码说明:

设有n个人围做一圈,现从某个人开始报数,数到m的人出列,接着从出列的下一个人开始重新报数,数到m的人又出列,如此下去,直到所有人都出列为止。运用循环单链表解决约瑟夫环问题。- Is equipped with n personally to encircle makes, presently starts from some person to count off, leaves ranks the number to the m person, meets from the next person which leaves ranks is starting reto count off, leaves ranks the number to the m person, continue like this, all leaves ranks until all people. Using circulates Shan Lianbiao to solve the Joseph link problem.

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

发表评论

0 个回复

  • Matlab下实现的CFD
    Matlab下实现的CFD算法-Matlab under the CFD algorithms
    2023-08-21 07:50:04下载
    积分:1
  • 使用队列模拟理发馆的排队现象,通过仿真手评估其营业状况。...
    使用队列模拟理发馆的排队现象,通过仿真手法评估其营业状况。-use cohort simulation barber"s shop, the queues, through simulation methods to assess its financial situation.
    2022-02-05 01:45:57下载
    积分:1
  • RSA基础
    RSA算法基础->实践 讲讲自己学习RSA中的实践过程,已经对RSA熟悉的看家就不用在此浪费时间了。-- gt; Talk about learning from practice RSA"s practice and has a specialty familiar with the RSA will not have the time to waste.
    2022-03-31 04:16:10下载
    积分:1
  • Blackjack C语言实现
    用C语言实现blackjack游戏 游戏规则如下(法语)  La partie oppose tous les joueurs contre la banque. Le but est de battre le croupier sans dépasser 21 (voire la valeur des cartes ci-après). Dès qu’un joueur fait plus que 21, il est éliminé de la partie. La valeur des cartes est établie comme suit : – de 2 à 10 : valeur nominale de la carte ; – chaque figure : 10 points ; – l’As : 1 point ou 11 points au choix du joueur. Un Blackjack est composé d’un As et d’une carte ayant pour valeur 10 (10, Valet, Daome ou Roi). Cependant, si le joueur atteint les 21 points en 3 cartes ou plus on compte 21 points et non pas Blackjack. Au début de la partie le croupier distribue une carte face visible à chaque joueur et tire une
    2022-01-25 22:14:08下载
    积分:1
  • 混合SPMD 模拟退火及其应用
    混合SPMD 模拟退火算法及其应用-mixed SPMD simulated annealing algorithm and its application
    2022-04-18 19:05:36下载
    积分:1
  • 识别拨电话号码
    资源描述输入一段拨号码的语音,可以输出拨的号码的结果
    2022-04-25 13:26:00下载
    积分:1
  • 八皇后问题的一个程序,可以输出结果
    八皇后问题的一个程序,可以输出结果-eight of a Queen"s procedures, the results can be output
    2022-09-13 14:00:03下载
    积分:1
  • edma3456wewewawe
    fxhgggggggggggggggggggggggggggggggggggfxtsrtsdystrrrrrrrrrrrrrrydgfbdvffdfdfgfgfgfgfhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
    2022-12-18 15:45:03下载
    积分:1
  • PRN伪随机码译码
    PRN伪随机码译码-PRN pseudorandom Decoding
    2022-01-26 08:25:38下载
    积分:1
  • 用labview编写的基于单纯形寻优。用来搜索高斯函数的极值点。...
    用labview编写的基于单纯形寻优算法。用来搜索高斯函数的极值点。-prepared using PC-based simplex optimization algorithms. Search Gaussian function to the extreme point.
    2022-03-06 19:38:31下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载