搜索资源列表
houzifentao
- 5个猴子抢得100个桃子后,讨论如何进行公正分配。假设每一个猴子都是绝顶聪明而理性,他们都能够进行严密的逻辑推理,并能很理智的判断自身的得失,即能够在保住性命的前提下得到最多的桃子。-Peach Monkey points
monkey
- 人工智能经典算法猴子摘香蕉问题的C语言实现-Classical artificial intelligence algorithms monkey mialaw C language implementation issues
houzixuandawang
- n只猴子要选大王,选举方法如下,所有猴子按1,2,... ,n编号围坐一圈,从第一好看是按照1,2,... ,m报数,凡报到m号的退 出圈外 ,如此循环,直到圈内只剩一只猴子时,这只猴子就是大王。-n monkeys to choose the king, the election is as follows, all the monkeys by 1,2, ..., n number around a circle, from the first look is in accordan
Monkey
- 这是一个简单的算法,用循环链表实现了猴子选王。用C语言描述-This is a simple algorithm, using the cycle to achieve the monkeys selected list king. Described using C language
monkey
- n个猴子围坐一圈并按照顺时针方向从1到n编号,从第s个猴子开始进行1到m的报数,报数到第m的猴子退出报数,从紧挨它的下一个猴子重新开始1到m的报数,如此进行下去知道所有的猴子都退出为止。求给出这n个猴子的退出的顺序表。-n a monkey sitting around and in accordance with the clockwise direction from 1 to n number of monkeys from the first s start from 1 to m of
SM
- 任务:一堆猴子都有编号,编号是1,2,3 ...m ,这群猴子(m个)按照1-m的顺序围坐一圈,从第1开始数,每数到第N个,该猴子就要离开此圈,这样依次下来,直到圈中只剩下最后一只猴子,则该猴子为大王。 功能:输入数据:输入m,n(m,n 为整数且n<m) 输出形式:中文提示按照m个猴子,数n 个数的方法,输出为大王的猴子是几号 ,建立一个函数来实现此功能-Tasks: a bunch of monkeys have a number, number is 1,2,3 ... m,
Josephissues
- 求解约瑟夫问题:猴子选大王:设有n个猴子围坐一圈,编号为1到n ,从1号开始报数,数到m的猴子出列;下一个猴子又从1开始报数,数到m 的猴子又出列,依次类推,直到最后一个便是大王。要求输出出列顺序,分别以n=30,m=7;n=7,m=30运行程序,检查结果是否正确。-Solving the issue of Joseph: King of the monkeys selected: with a monkey n around a circle, numbered 1 to n, from th
monkey
- 用C语言来处理优化设计中的一些比较简单的数学问题-For the language to deal with the issue of optimal design
1
- 用C++来实现 把所有猴子当做结点 建立一个循环链表 再从第一个猴子开始间隔一个数目的来选择 最后的猴子当大王 -Using C++ to achieve all the monkeys as the establishment of a cycle node list from the beginning of the first interval of a monkey to choose the number of the last king of the monkeys when
monkeys
- 猴子 病毒样本。使用前记得关杀毒软件。。小心使用-Monkey virus samples. Use antivirus software before the recall clearance. . The careless use of
MONKEYE
- 猴子变种病毒样本。使用前记得关杀毒软件。。小心使用-Monkey virus variants. Use antivirus software before the recall clearance. . The careless use of
monkey
- Monkey King the election,It is easy to understand ,as well as practise,You can try it in the C++ environment
houzixuandawang
- 有M只猴子围成一圈,每只各一个从1到M中的编号,打算从中选出一个大王;经过协商,决定出选大王的规则:从第一个开始循环报数,数到N的猴子出圈,最后剩下来的就是大王。要求:从键盘输入M、N,编程计算哪一个编号的猴子成为大王 -Monkeys have M circle, each one each from 1 to M in number, intended to select from a king after consultations, decided to select a king s
prolog
- here are some prolog programs like armstrong no. ,tower of hanoi , sorting of different types,monkey-banana problem , Queens problem,etc
monkey
- C语言编写猴子选王程序,很好用 程序过程简单易懂-monkey King
Engineering---Monkey-King-election
- 程序,猴子选大王,通过你输入的猴子的个数来选出大王-Program, monkey king elected by you to input the number of elected king of the monkeys
Monkey-eating-peaches-question
- 猴子第一天摘了若干个桃子,当即吃了一半,还不解馋,又多吃了一个;第二天,吃剩下的桃子的一半,还不过瘾,又多吃了一个;以后每天都吃前一天剩下的一半多一个,到第10天想再吃时,只剩下一个桃子了。问第一天共摘了多少个桃子? -Monkey eating peaches question
monkey banana
- 猴子摘香蕉的描述,对一些读者提供一些思路并以产生式的规则进行了演示(introduce about monkey hand on the bnanan)
monkey
- 猴子选大王c++实现:n只猴子围坐成一个圈,按顺时针方向从1到n编号。然后从1号猴子开始沿顺时针方向从1开始报数,报到m的猴子出局,再从刚出局猴子的下一个位置重新开始报数,如此重复,直至剩下一个猴子,它就是大王。(N monkey sitting around in a circle, numbered from 1 to n clockwise.Then start from 1 monkeys along the clockwise direction starting from 1 cou
Monkey
- monkey的代码。。。。。。。。。。。。(The code of monkey.........)
