搜索资源列表
JosephRing
- 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 -Known n individuals (in numbers 1,2,3 ... n respectively) sitting around a round table around. From the number of people began to report the num
joseph
- 首先,认识并了解著名的约瑟夫问题:已知n个人(n>=1)围坐一圆桌周围,从1号开始顺序编号。从序号为1号的人开始报数,顺时针数到m的那个人出列:他的下一个人又从1开始报数,数到m的那个人又出列;依此规则一直重复下去,直到所有人全部出列,要求:求出最后一个出列人的编号。 本程序运用VC++ 6.0开发工具,利用MFC框架构造一个基于对话框的应用程序,用户根据对话框的界面提示,了解约瑟夫问题,并且在对话框上键入总人数(n) 和出列数(m) 。由编辑框输出结果,结果显示为最后一个出列人的
huawei_world
- 完成功能:约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。 从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列; 依此规律重复下去,直到圆桌周围的人全部出列。-Completion: Joseph ring is the application of a mathematical problem: n known individual (numbered 1, 2, 3... n, respecti
HeadCounter-master
- head-counterThis was a proof of concept but two people starred it. Now its going to become a library :) -# ofxHeadCount Counts the number of people walking in or out of an entrace over time. Each count is timestamped. This was a proof of co