登录
首页 » 其他项目 » 约瑟夫环:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自...

约瑟夫环:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自...

于 2022-10-30 发布 文件大小:801.00 B
0 102
下载积分: 2 下载次数: 1

代码说明:

约瑟夫环:编号为1,2,3,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止。报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一人开始重新从1报数,如此下去,直到所有人全部出列为止。编程打印出列顺序。-Josephus : No. 1, 2, 3, ..., n n clockwise direction by individuals sitting around a circle, each holding a password (positive integers). An optional started as a positive integer reported limits on the number of m, from the first individuals to embark on the clockwise direction since the beginning of a sequence number off, the report m stop. M reported out of the list of his password as a new value m, from a clockwise direction in the next one started from a newspaper a few, like that, until the total of all listed so far. Programming print out the order.

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

发表评论

0 个回复

  • DM万用版 V9.55 dm955cy.zip
    DM万用版 V9.55 dm955cy.zip-DM 10,000 with version V9.55 dm955cy.zip
    2022-01-26 05:40:42下载
    积分:1
  • ASP 网上书店!实现购物车等网上购物等,包括源码和需求分析等!...
    ASP 网上书店!实现购物车等网上购物等,包括源码和需求分析等!-ASP online bookstore! Achieve the online shopping cart, etc., etc., including the source code and needs analysis!
    2023-05-29 15:30:03下载
    积分:1
  • 2008 First acm Collegiate Programming Contest Regional Competition in Zhuhai
    2008年首届acm大学生程序设计竞赛珠海区域赛――赛题、参考源代码及测试数据-2008 First acm Collegiate Programming Contest Regional Competition in Zhuhai- Race title, reference source code and test data
    2022-02-13 17:31:11下载
    积分:1
  • Elman神经网络
    基于Elman神经网络的预测程序,可用于电力系统短期负荷预测 -Elman neural network-based forecasting process, can be used for short-term load forecasting of power system
    2022-01-31 16:41:00下载
    积分:1
  • 快速固定
    fast fixed-point ICA算法的Matlab实现-fast fixed-point algorithms ICA Matlab
    2022-02-14 09:24:48下载
    积分:1
  • 这是一个小游戏,它是流行的儿童,实用的新球员。
    这就是我们玩的小游戏,对开始接触游戏开发的新手很实用。-This is a small game which is popular with children,practical for new player.
    2022-02-22 04:48:23下载
    积分:1
  • 矩阵求逆,经典算法,主元高斯全左右弗兰…
    矩阵求逆,经典算法,全主元高斯约当法,经典源码,用途广泛-matrix inversion, classic algorithms, the main yuan Gaussian all about when France, classic source, a wide range of uses
    2022-03-28 18:05:36下载
    积分:1
  • 根据二维空间内目标作匀速直线运动和匀速圆周运动的特点,在建立目标运动模型和观测模型的基础上采用基于交互多模算法(IMM)的卡尔曼滤波器对机动目标进行跟踪。仿真结果表明,该算法不仅能够对匀速直线运动和匀速圆周运动的目标进行跟踪,而且在运动模型发生变化时,滤波误差也比较小。 关键词:卡尔曼滤波器;目标跟踪;机动;交互多模(IMM) -two-dimensional space under target for uniform linear motion and uniform circular motion characteristics, the establishment of the target model and observations on the basis of the model based on interactive multi-algorithm (IMM) Kalman Filter right track moving targets. Simulation results show that the method can not only on uniform linear movement and the uniform circular motion of the target tracking, and the campaign model change, the filter error is relatively small. Keywords : Kalman filter; Target tracking; Mobility; Interactive multi-mode (IMM)
    2022-02-11 17:57:23下载
    积分:1
  • 很好的时间
    一个很好的关于时频分析的软件包。大家下载后直接解压就可以使用了。-A very good time-frequency analysis on the package. U.S. download direct decompression can be used.
    2022-04-15 08:56:52下载
    积分:1
  • 主要是虚拟仪器用户面板登入,操作简单,界面友好。
    主要是虚拟仪器用户面板登入,操作简单,界面友好。-Virtual instrument panel is mainly a user login, simple operation and friendly interface.
    2022-06-17 17:51:54下载
    积分:1
  • 696524资源总数
  • 103930会员总数
  • 47今日下载