登录
首页 » C++ » 约瑟夫环代码

约瑟夫环代码

于 2022-02-15 发布 文件大小:1.69 MB
0 121
下载积分: 2 下载次数: 1

代码说明:

约瑟夫环问题:一圈共有N个人,从第s个人开始报数,报到M的人自杀,然后自杀的下一个人重新开始报数,报到m的就选择自杀,如此反复进行下去,问最后自杀的人是谁?

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

发表评论

0 个回复

  • single-SPWM(x2)
    单极性倍频SPWM调制程序,希望对大家有用(Unipolar SPWM modulation frequency doubling process, we hope to be useful)
    2014-05-12 17:01:33下载
    积分:1
  • vlfft OK
    6678fft算法在ccs5.2上运行123(The 6678fft algorithm runs on ccs5.2)
    2017-09-13 09:18:21下载
    积分:1
  • CoolPicture
    基于BREW 2.0 开发的手机图片下载程序,在多款手机上通过测试,是学习BREW网络编程的好的范例。把解压后的文件夹作为BREW模拟器的运行目录即可运行。 (based on the BREW 2.0 development of the mobile phone download pictures, in assorted phone test BREW is learning network programming of good examples. Put the extracted files folder as BREW Simulator directory can be run.)
    2007-03-24 21:08:42下载
    积分:1
  • SURF
    opencv,打开一张图片,提取surf特征(opencv, open a picture, feature extraction surf)
    2016-11-24 09:41:44下载
    积分:1
  • matlab三维重建
    sift算法实现图像匹配,是实现三维重建中的重要部分,仅供参考                                                                                                    。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
    2022-02-07 23:11:31下载
    积分:1
  • picture
    主要使图像进行灰度化处理,matlab的源代码,视同再进一步的预处理中应用(Gray image)
    2014-01-05 18:07:47下载
    积分:1
  • RWCriticalSection_src
    一种可以利用它来实现线程安全读写控制的模型,可以在vc下编译运行。(one can use it for reading and writing threaded control of the security model, the compiler running under vc.)
    2005-06-15 22:24:09下载
    积分:1
  • 8.UR机器人的网络和通讯
    说明:  了解UR机器人的通讯方式,完成实际操作指导(Understanding the communication mode of UR robots Complete practical operation guidance)
    2020-07-26 09:08:41下载
    积分:1
  • 2
    说明:   有一个长度为整数L(1<=L<=10000)的马路,可以想象成数轴上长度为L的一个线段,起点是坐标原点,在每个整数坐标点有一棵树,即在0,1,2,...,L共L+1个位置上有L+1棵树。 现在要移走一些树,移走的树的区间用一对数字表示,如 100 200表示移走从100到200之间(包括端点)所有的树。 可能有M(1<=M<=100)个区间,区间之间可能有重叠。现在要求移走所有区间的树之后剩下的树的个数。 输入: 两个整数L(1<=L<=10000)和M(1<=M<=100)。 接下来有M组整数,每组有一对数字。 输出: 可能有多组输入数据,对于每组输入数据,输出一个数,表示移走所有区间的树之后剩下的树的个数。(Has a length of integer L (1 &lt = L &lt = 10000) of the road, one can imagine a number line segment of length L, the starting point is the coordinate origin, each integer coordinate points in a tree, i.e. 0,1 , 2, ..., L total has L+1 L+1 positions on the tree. Now to remove some trees, tree removed by a range of digitally represented, such as 100 200 represents removed (inclusive) between 100 and 200 all the trees. There may be M (1 &lt = M &lt = 100) intervals, there may be overlap between the intervals. Now, after the number of trees require the removal of all remaining sections of the tree. Input: two integer L (1 &lt = L &lt = 10000) and M (1 &lt = M &lt = 100). Then there is an integer M groups, each with a pair of numbers. Output: there may be multiple sets of input data, for each set of input data, the output of a number indicating the number of the removal of all remaining sections of the tree after tree.)
    2015-03-22 23:35:47下载
    积分:1
  • WelcomeToBeijing
    这是一个多媒体可以实现对字体和字体颜色编辑的程序(This is a multi-media can be achieved on the font and font color of the editing processes)
    2008-08-11 17:17:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载