登录
首页 » Windows开发 » 约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从...

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

于 2022-02-10 发布 文件大小:11.58 kB
0 202
下载积分: 2 下载次数: 1

代码说明:

约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从它在顺时针方向的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序-Joseph Central (Joseph) a description of the problem is: numbered 1,2, ..., n of n individuals according to a clockwise direction around a circle, each holding a password (positive integer). The beginning of a positive integer as a candidate at a number of upper limit of m, from the first individual to embark on the clockwise direction since the beginning of the order of 1 is reported the number of stops required to report back at a few m. Those who reported m out of his password as the new value of m, in a clockwise direction from the next person to start off again from the 1, and so on, until all that out until all. Try to design a procedure to derive the column order

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

发表评论

0 个回复

  • 一个非常的留言板程序,其功能只有留言显示和送。但是该留言板程序,是基于“三层结构”的。留言板程序可以运行在三个数据库平台上,分别是:Access数据库、MSS...
    一个非常的留言板程序,其功能只有留言显示和发送。但是该留言板程序,是基于“三层结构”的。留言板程序可以运行在三个数据库平台上,分别是:Access数据库、MSSqlServer数据库和MySql数据库。只需要通过修改Web.Config文件来设置留言板运行的数据库平台,而不是开发三个数据库版本的留言板… 可以使用TraceLWord_MSSqlServer.sql生成MSSqlServer数据库中的表,使用TraceLWord_MySql.sql生成MySql数据库中的表。 - An unusual message center procedure, its function only has the message demonstration and the transmission. But this message center procedure, is based on "three structures". The message center procedure may move in three databases platforms, respectively is: Access database, MSSqlServer database and MySql database. Only needs through to revise the Web.Config document to establish the message center movement the database platform, but is not develops three databases editions the message center... May use TraceLWord_MSSqlServer.sql to produce in the MSSqlServer database the table, uses TraceLWord_MySql.sql to produce in the MySql database the table.
    2022-03-03 21:20:18下载
    积分:1
  • 端口扫描
    这是一个简单的桌面应用程序的网络扫描。它运行在端口扫描或在端口扫描模式中,使用可用的 (目前) 三种不同扫描方法之一。它是在 VC 利用 WinPcap 本机库和.NET 包装,SharpPcap 开发了。它提供用于设置网络扫描选项具有日志记录功能的基本界面。该项目最初是为信息系统 (MSc) 的"系统与网络安全"课程任务在雅典大学经济和商业 (MScIS 2008-09) 由装修 Biboudis 和于 Nerantzinis.Modes 当前可用端口扫描,端口扫描。当前可用的方法是 TCP 扫描,UDP 扫描,SYN 扫描。
    2022-02-02 01:29:39下载
    积分:1
  • HOOK API代码例子
    HOOK API的代码,通过学习此代码,可以掌握如何HOOK API函数。本代码包中包含了隐藏进程,文件监视等代码。希望能给学习HOOK API函数的朋友带来帮助。
    2022-10-26 19:05:03下载
    积分:1
  • melp1.2.tar
    melp1.2.tar
    2023-06-27 12:05:04下载
    积分:1
  • Cpphtml is a utility to convert your C++ code to HTML. If you have a C++ file, s
    Cpphtml is a utility to convert your C++ code to HTML. If you have a C++ file, say myprogram.cpp, and you want to put it on your website, you can run it through Cpphtml which will convert the code to HTML with all comments, keywords and preprocessor directives highlighted. Cpphtml will send all output to cout, so you have to redirect the output to a file if you want to create a HTML file
    2022-12-14 19:50:03下载
    积分:1
  • libcurl for windows automobile
    libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more! 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-07-05 07:28:10下载
    积分:1
  • VB串口通讯测试源代码,可以打、关闭端口,可以进行波特率、端口号设置,有文本和图形两种端口数据观察方式、...
    VB串口通讯测试源代码,可以打开、关闭端口,可以进行波特率、端口号设置,有文本和图形两种端口数据观察方式、-VB serial communication test the source code, you can open, close the ports, can be baud rate, port number is set, there are two kinds of text and graphics port data observation method
    2022-08-25 07:29:34下载
    积分:1
  • SpringMVC+Spring+myBatis框架整合示例代码
    越来越多的企业开始选择springmvc+mybatis来构建系统架构,在电商热门的今天,springmvc+mybatis已成为电商项目架构的最佳搭配。Spring mvc和struts2都属于表现层的框架,spring mvc是Spring框架的一部分,较于struts2框架使用的更加广泛;mybatis和hibernate都属于持久层的框架,mybatis是对jdbc操作数据库的的过程进行封装,使开发者只需要关注 SQL 本身,而不需要花费精力去处理例如注册驱动、创建connection、创建statement、手动设置参数、结果集检索等jdbc繁杂的过程代码。
    2023-01-12 23:35:04下载
    积分:1
  • 只要你的计算机存贮得下,它就能够运行!它就能够给你满意的答案!!它就是改进后的也阶乘函数my_factorial()...
    只要你的计算机存贮得下,它就能够运行!它就能够给你满意的答案!!它就是改进后的也阶乘函数my_factorial()-as long as you store in the computer, it can run! It can give you a satisfactory answer! ! It is also improved the factorial function my_factorial ()
    2022-01-31 16:33:23下载
    积分:1
  • 检测电脑中的HID设备的数量和信息
    本程序基于MFC界面开发,使用编程语言C++,编程工具室VS2008,通过按下按钮,可自动检测连接到电脑上的HID设备以及相关的HID设备的信息,该工程需要在工程属性中添加testUSB文件中的头文件,在link中增量链接使能需要改为NO
    2022-01-22 13:40:23下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载