登录
首页 » 数据结构 » 设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列...

设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列...

于 2023-03-09 发布 文件大小:550.00 B
0 159
下载积分: 2 下载次数: 1

代码说明:

设有n个人站成一圈,每个人持有一个密码(正整数)。现从第t个人开始,按顺时针方向“1,2,3,4,…”循环报数,数到m1(第t个人所持密码)的人出列,然后从出列者的下一个人重新开始报数,数到m2(刚出列者所持密码)的人又出列,如此重复进行,直到n个人都出列为止。-something like Joseph problem

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

发表评论

0 个回复

  • hash
    hash排序,用hash法进行字符或数字的排序。-hash
    2023-05-11 11:50:03下载
    积分:1
  • 此为编译原理实验报告 学习消除文法左递规算法,了解消除文法左递规在语法分析中的作用 内含 设计算法 目的 源码 等等.... 算法:消除左递归算法为: (1)把...
    此为编译原理实验报告 学习消除文法左递规算法,了解消除文法左递规在语法分析中的作用 内含 设计算法 目的 源码 等等.... 算法:消除左递归算法为: (1)把文法G的所有非终结符按任一种顺序排列成P1,P2,…Pn 按此顺序执行 (2)FOR i:=1 TO n DO BEGIN FOR j:=1 DO 把形如Pi→Pjγ的规则改写成 Pi→δ1γ δ2γ … δkγ。其中Pj→δ1 δ2 … δk是关于Pj的所有规则; 消除关于Pi规则的直接左递归性 END (3)化简由(2)所得的文法。即去除那些从开始符号出发永远无法到达的非终结符的 产生规则。-to compile this report principle experiment to eliminate learning grammar rules Left delivery algorithm, left the Elimination delivery grammar rules in grammar analysis of the role of the design algorithm containing purpose algorithm source code .... etc. : Elimination left recursive algorithm : (1) grammar, of all non-G website by the end of a paramagnetic Arrange sequence P1, P2, ... Pn implementation of this order (2) FOR i : n = 1 DO TO BEGIN FOR j : = 1 DO put the shape of Pi Gamma approximate rewrite the rules 1 into Pi Gamma Gamma 2 k .... These ions 1 2 ... k ions on all the rules; Pi elimination of the direct rule left recursive END (3) Reduction from (2) from the grammar. Removing that those symbols s
    2022-05-09 09:48:32下载
    积分:1
  • setcursor CWnd loadcursor destroywindow CDialog getclientrect C按钮getstock…
    SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStockObject CFont GetWindowLong SetWindowLong GetWindowRect BeginDeferWindowPos EnableWindow DeferWindowPos EndDeferWindowPos InvalidateRect UpdateWindow GetCursorPos CPoint SetCapture GetCapture ReleaseCapture CallWindowProc CPaintDC DrawEdge PtInRect SetFocus CMenu-SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStock Object CFont GetWindowLong SetWindowLong Get WindowRect BeginDeferWindowPos EnableWindo w DeferWindowPos EndDeferWindowPos Invalida teRect UpdateWindow GetCursorPos CPoint SetC apture GetCapture ReleaseCapture CallWindow Proc CPaintDC DrawEdge PtInRect SetFocus CMen u
    2022-03-10 19:56:56下载
    积分:1
  • c++链表模板类,实现所有链表的功能!
    c++链表模板类,实现所有链表的功能!包括增删改查,反转、递归反转等功能。对数据结构初学者有极高的参考价值。且代码规范,命名规范,有很多注释帮助理解。
    2022-08-16 10:11:43下载
    积分:1
  • 库开发系统,并主动代码发布
    同一个数据库开发的系统,有源代码和发布版本-with a database development systems, and active code releases
    2022-02-11 13:50:28下载
    积分:1
  • 银行业的应用
    正常的银行应用程序在C + +语言实现。MySQL数据库的使用。通过使用mysqlconnector C++程序与MySQL数据库的连接。这里的数据库命名为“银行”。一个表使用的是名为“user_account在账户信息的用户存储。在这个程序中执行的操作是创建新的帐户,显示帐户细节,存款金额,取款金额,余额查询,关闭帐户,修改帐户。程序应该用以下命令在终端编译。sudo g++ -Wall -I/usr/include/cppconn -o testapp banking_application.cpp -L/usr/lib -lmysqlcppconn一个可执行文件命名为testapp将被创建。运行它通过使用命令“/ testapp”。
    2022-08-08 23:53:23下载
    积分:1
  • pb 源码 日历控件
    pb 源码 日历控件-pb source Calendar Control
    2022-04-20 07:31:09下载
    积分:1
  • elsewhere When a red tiger diary source code
    别处找来的红虎日记源代码-elsewhere When a red tiger diary source code
    2022-02-09 12:52:39下载
    积分:1
  • Delphi2005库开发教程.rar
    Delphi2005数据库开发教程.rar-Delphi2005shujukukaifa
    2022-08-16 10:28:44下载
    积分:1
  • Text format documents matching brackets. Matching algorithm uses the stack to ac...
    实现文本格式文件中的括号匹配. 匹配算法采用堆栈来实现. 文件读取异常还需完善的人性化一些-Text format documents matching brackets. Matching algorithm uses the stack to achieve. Paper anomaly needs to be well-read human nature of some `` ``
    2022-10-14 17:20:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载