登录
首页 » 算法 » a description of the problem is : No. 1, 2, ..., n n clockwise direction by indi...

a description of the problem is : No. 1, 2, ..., n n clockwise direction by indi...

于 2022-02-03 发布 文件大小:1.35 kB
0 143
下载积分: 2 下载次数: 1

代码说明:

约瑟夫问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,没人持有一个密码。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针自1开始报数,报到m是停止报数。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。-a description of the problem is : No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, no one holding a password. One person started as a positive integer limits on the number of reported m, from the first individuals to embark on the clockwise from a few reportedly started, the report m is reportedly stopped a few. M reported out of the list of his password as a new value m, from a clockwise direction in the next re-started from a newspaper a few, like that, until the total of all listed so far.

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

发表评论

0 个回复

  • cython写的DTMF解码器(python直接使用,效率和c接近)
    cython写的DTMF解码器(python直接使用,效率和c接近)
    2022-01-27 10:28:11下载
    积分:1
  • math software
    math software
    2022-02-10 07:53:41下载
    积分:1
  • normalizacion de documentos EN C
    应用背景联合国普通阙就像para la normalizacion de documentos阙在时光在一carpeta Y Q有现在很要科莫consultas一ESOS documentos partir德ciertos Terminos科莫家狗嘎图PAñ麦酒鬣蜥字母表卡拉开大声小儿PISasdasd房间隔缺损房间隔缺损房间隔缺损DAS关键技术好的,siguiendo CON NUESTRO特马…… ;我们的计划escribimos,恩恩,compilamos Y corregimos托多斯我们误差,你当La compilacióN HAYA terminado CONéxito…… ;我们observar阙埃尔恩EL arhivo创作目的(EJ:栏目。O),EN LA不善direccióN恩的地方guardamos El CóDIGO Fuente de Nuestro prgrama的… ;Y现在ES的地方法ú一EL GCCóg++ dependiendo CuAl de los DOS utilicemos…… ;四是联合国档案馆C,abrimos尤娜consola,NOS dirigimos HACIA donde encuentran El CóDIGO Fuente y el档案馆接受过一compilar del程序Y tecleamos: ;
    2023-02-19 09:10:03下载
    积分:1
  • 1 bp algorithm, but there may be some code warning
    一个bp算法,不过代码可能会有一些warning-1 bp algorithm, but there may be some code warning
    2022-10-01 22:50:03下载
    积分:1
  • 用幂法求矩阵的特征值,求出来的是矩阵最大的特征和对应的特征向量。...
    用幂法求矩阵的特征值,求出来的是矩阵最大的特征和对应的特征向量。-method for using the power of the matrix eigenvalue, seeking the Matrix is the biggest character and the corresponding eigenvector.
    2022-01-21 01:40:03下载
    积分:1
  • 八数字源问题。
    八数码问题源程序.-eight digital source issues.
    2022-02-14 09:31:48下载
    积分:1
  • 用数值积分算法实现C++语言的程序
    此程序为C与语言编写的数值积分算法-procedure for the C language with the numerical integration algorithm
    2022-05-25 12:34:11下载
    积分:1
  • 离散分数傅里叶变换算法的matlab程序
    分数傅里叶变换的离散算法的matlab程序-Discrete fractional Fourier transform algorithm matlab program
    2022-01-26 05:38:52下载
    积分:1
  • socket 加法
    这是一款socket加法代码,希望有帮助,有客户端和服务器,从客户端输入数字,返回到服务器,服务器经计算将其结果返回到客户端。
    2022-08-08 23:19:19下载
    积分:1
  • It s a simple Parser That calculates mathematic operations.You give an input and...
    It s a simple Parser That calculates mathematic operations.You give an input and it starts the calculation by showing you the parsing operation in real-time.
    2022-10-05 22:30:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载