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

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

于 2022-10-30 发布 文件大小:801.00 B
0 206
下载积分: 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 个回复

  • 一个蚁群优化原理ppt详细系统介绍…
    一个详细的 系统的介绍了 ant colony optimization 的ppt 对其中的原理做了比较详细的分类介绍 -A detailed system for the introduction of ant colony optimization principle ppt of them make a more detailed classification of introduction
    2022-05-22 14:33:10下载
    积分:1
  • Software source code PowerBuilderXieLieJiangZuo
    软件源码PowerBuilderXieLieJiangZuo,PowerBuilder系列讲座-Software source code PowerBuilderXieLieJiangZuo
    2022-08-21 12:37:18下载
    积分:1
  • 该程序用于编写函数:1。的负载和计算…
    此程序用fortran编写 功能: 1、是计算在载荷作用下的平面桁架位移以及杆件的轴力。轴力符号规定,受拉为正,受压为负。另外还哼计算支座反力。 2、对桁架的节点编号,采取先编可动节点,接着再编固定节点。 3、计算多工况问题 此程序出自《杆系结构程序设计》,有改动,原程序有错误-the procedure used to prepare fortran functions : 1. calculation of the load under the plane truss rod displacement and the axial force. Symbol axial force, the tension is positive, negative pressure. It also supports anti-hum calculating power. 2, the number of nodes truss, the first series to take movable joints, and then re-allocation fixed nodes. 3, the calculation of multi-state issues this procedure from the "bar structural design process," with changes, the original procedure is wrong
    2022-02-12 06:40:47下载
    积分:1
  • C programming source code cases
    C++程序设计源代码例-C programming source code cases
    2022-09-07 17:10:02下载
    积分:1
  • IMEGEN支持90万词库IMEGEN支持 90万词库 IMEGEN支持 90万词库 IMEGEN支持90万词库...
    IMEGEN支持90万词库IMEGEN支持 90万词库 IMEGEN支持 90万词库 IMEGEN支持90万词库 -IMEGEN support 900,000 thesaurus IMEGEN support 900,000 Thesaurus IMEGEN thesaurus support 900,000 IMEGEN support thesaurus IMEGEN thesaurus support 900,000 IMEGEN support thesaurus IMEGEN thesaurus support 900,000 900,000 IMEGEN support thesaurus
    2022-07-01 05:00:30下载
    积分:1
  • 该计划将给BCD七段显示的功能
    this program will give the functionality of bcd to seven segment display
    2023-01-02 02:35:03下载
    积分:1
  • 英雄就美 一个很有趣的微型RPG 使用c语言实现的
    英雄就美 一个很有趣的微型RPG 使用c语言实现的-hero on America a very interesting micro-RPG use the C Language
    2022-02-06 00:46:51下载
    积分:1
  • 在vc环境下,基于arcobject开发源码2
    在vc环境下,基于arcobject开发源码2-in vc environment, based on the two-source development arcobject
    2022-03-20 06:12:04下载
    积分:1
  • 台球地图实现,可以移植的模块,适合大多数的台球小程序,很方便...
    台球地图实现,可以移植的模块,适合大多数的台球小程序,很方便-Billiard map realize, you can transplant the module, suitable for the majority of billiards applet, it is convenient
    2022-02-03 06:41:00下载
    积分:1
  • basic MPC matlab文件 基本的模型预测控制程序
    basic MPC matlab文件 基本的模型预测控制程序-basic MPC
    2022-08-04 04:30:08下载
    积分:1
  • 696518资源总数
  • 106245会员总数
  • 18今日下载