搜索资源列表
CjsAYr
- 这是传教士与野人精典问题的一个简单实现传教士与野人的个数可以输入,船的容量可以输入为交作业写,很马虎,请高手赐教!-This is the classic missionaries and savage the realization of a simple missionary with the Savage Number input, the boat will be able to import perpendicular operation was very sloppy, please
BarbAttackUI
- 模拟一个出游的国王护卫队,在野外遇到了野人攻击,在营地里设立防御后抵御四面野人的攻击,游戏就是通过输入命令调整四面防守人员的调度已达到防止野人伤害到国王的目的。指令输入形式如下<soldier type><from><to><number of men>,士兵有三种:剑士、弓箭手、国王卫士,分别缩写为s a k,指令aew10就代表把10个弓箭手从东面移到西面。野人出现方向随机,数量随机,总量固定,野人死光算赢,国王死或有10个野人进入到营地中间算
BarbAttack
- 一个野蛮人进攻国王以及护卫的游戏。 游戏有剑手,弓手,守卫三种士兵-A savage attack on the king and the security of the game. Games swordsman, archers, three soldiers guarding
Savage-and-preachers
- 从前有一条河,河的左岸有m个传教士、m个野人和一艘最多可乘n人的小船。约定左岸,右岸和船上或者没有传教士,或者野人数量少于传教士,否则野人会把传教士吃掉。搜索一条可使所有的野人和传教士安全渡到右岸的方案。-Once upon a time there was a river, on the left bank of the river have m a missionary, m a savage and a ship can take up a man s boat. On the agree
M-C-across-the-river-problem
- 用java对野人和传教士过河问题的实现,内涵源码,传教士和野人过河是一个经典的智力难题。 希望对初学者学习java有所帮助-M with Java savage and missionaries across the river to the realization of the problem, connotation source, missionaries and savage across the river is a classic intellectual problem.
mandc
- 有N个传教士和N个野人来到河边准备渡河,河岸有一条船,每次之多可供k个人乘渡。传教士为了安全起见,任何时刻,河两岸以及船上的野人数目总是不能超过传教士的数目(传教士数目为0除外)。求解一个可以令传教士和野人安全从左岸全部摆渡到右岸的过程。2、 可执行程序可以通过命令行参数传入输入输出文件路径,通过读取命令行参数指定的输入文件得到初始状态,并将结果输出到指定的输出文件中。 具体格式为:<可执行文件> <输入文件路径> <输出文件路径> -N-missio
Missionaries---savage-problem
- 用状态空间发求解有N个传教士和N个野人要过河的问题-With state space to solve the N preacher and N wild man to cross the river