搜索资源列表
josephus.1
- 描述:设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈,每人持有一个正整数密码。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,抱m的人出列,从他在顺时针方向上的下一个人起重新自1起顺序报数;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。 .算法思想: Jeseph函数是实现问题要求的主要函数,其算法思想是:从1至m对带头结点的单循环链表循环计数,到m时,输出该结点的编号值,,再从
DeskApp
- 用VC编写的,涉及到列表控件,DAO数据库编程,文件操作,和一些SHELL知识.可以把电脑用的文件,图片,网业地址加入到软件中,直接单击就可以执行程序,或网业,和图片,不需要每次都打开我的电脑,在找到文件,支持注册表中所有注册的文件类型,对那些文件很多又记不清放在哪的人是个很好的帮助!-VC preparation, involving Control List, DAO Database Programming, file manipulation, and some SHELL knowle
030300329jose
- Josephus 排列问题定义如下:假设n 个竞赛者排成一个环形。给定一个正整数m,从某 个指定的第1 个人开始,沿环计数,每遇到第m 个人就让其出列,且计数继续进行下去。这 个过程一直进行到所有的人都出列为止。最后出列者为优胜者。每个人出列的次序定义了整 数1,2,…,n 的一个排列。这个排列称为一个(n,m)Josephus 排列。 例如,(7,3)Josephus 排列为3,6,2,7,5,1,4。-Josephus problem with the definition
PeopleCounter
- This program count people pass a certain corridor using two defined windows
dianming
- //一个笔试题:15个美国人和15个日本人围坐一圈,从其中一人开始数数,从1数到9,数到9的人踢出去, //设计代码使被踢出的人都是日本人,输出日本人坐的位置。-//A pen test: 15 Americans and 15 Japanese were sitting around, from one of them began to count, the number from 1 to 9, the number to 9 people踢出去,// design code so th
3
- 本文介绍一个实时视频对象计数系统的设计原理和实现方法[’]。这个系统目前已经应用十毛主席纪念堂,对每日瞻仰人数进行实时的统计,为纪念堂提供基本的统计数据。 - An image processing system was <levelope<1 to recognize au<l trace video objects to automatically count people. This paper describes the system design
cal
- 自己做的,VC大数计算器,采用移位的方法..超出微软本身自带的计算器的计数范围...用到大数计算的人可以参考一下-Of their own to do, VC calculator large numbers, using the method of displacement .. beyond Microsoft' s own built-in calculator ... the count range of the calculation of large numbers of pe
4.22
- 15名基督教徒和15名异教徒同乘一船航行,途中风浪大作,危机万分,领航者告诉大家,只要将全船的一半人投入海中,其余人就能幸免。大家都同意这个办法,并协定者30人围成一圈;由第一个人起报数,每数至第9人便把他投入海中,下一个接着从1开始报数,第9人又被投入海中,依次循环,直至剩下15人为止。问题是如何排法使投入海中的人全为异教徒?-15 Christians and 15 pagans take a boat sailing with the way waves rang out, the cri
Josephloopproblem
- 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Known n individuals (with numbers 1,2,3 ... n, respectively) were sitting around a round table around. From the number of k, the number of people
count
- 网站计数器,访问网站的次数,可以记录下来,提示有多少人访问。-Web site counter, the number of visits the site can be recorded, indicating how many people visit.
1055
- There are 10 kinds of people -- those who understand binary and those who don t. 大家一定都玩过数七这个游戏。游戏的规则很简单,几个人围成一个圈,从1开始报数,数到7的倍数或者含有7的数字的数就不能出声,要用其他方式表示自己已经报过数字,如果报错了就要受到惩罚。游戏的乐趣在于简单的规则下,总是有人会数错。 作为ACMer,大家都认为这个游戏不符合ACMer的身份。于是TheBeet决定改一下规则,让大
finished
- 试用分别用线性表的向量存储结构和链表存储结构来实现约瑟夫(Josephu)问题。约瑟夫问题如下: 设有n个人围坐圆桌周围。从某个位置上的人开始从1报数,数到m的人便出列,下一个人(第m+1个)又从1报数开始,数到m的人便是第2个出列的人,依次类推,直到最后一个人出列为止,这样就可以得到一个人员排列的新次序。例如,n=8,m=4,从第1个人数起,得到的新次序为48521376.-Trial were linear vector table storage structure and th
17people_count
- 17依次报数,去除3的倍数,然后继续再报数。。。直到剩一个人,问这个人是原来队列中的第几个人?-17 reported that the number of turn to remove a multiple of 3, and then continue again count off. . . Until the left one person asked this person is the original queue, the first few people?
Catholics
- w-w1各教徒和w1个非教徒在海上遇险,必须将一半的人投到海中,其余的人才能幸免,于是想了个办法w人围成一圈从第一人开始报数,数到第w2个就将其人丢入海中,又从下个人数,数到第w2个人又丢入海中,依次循环,怎样排才使投入大海的都是非教徒-w-w1 and w1 of all non-believers believers in distress at sea, half of them must be invested in the sea, the others can be spared,
Josephwayissue
- Known n individuals (respectively number might 1,2,3, ..., n behalf of) sitting around a round table around, starting with number 1 for the k, starting clockwise from the number reported, 1, 2, 3,. .., note the number of clockwise to m the man and,
Josephus
- 是一个数学的应用问题: 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 -The application is a mathematical problem: given n individuals (in numbers 1,2,3 ... n, respectively) sitting around a round table a
count
- 公交车客流量检测系统,MFC版峰值计数(加方向检测)-for people counting on the bus
statistics-for-the-numbers-of-people
- The software uses number of times statistics , the online number to count
Fayed_PeopleCounter
- People count system based on no-coding system. U can use server based system, or webcam based system etc
HeadCounter-master
- = Head Counter = The aim of this software is to be able to count the number of people present in a crowd, especially in protests, and provide an estimate as accurate as possible. This software is currently at a very early stage. Compilation ==