文件名称:code
-
所属分类:
- 标签属性:
- 上传时间:2012-09-04
-
文件大小:121.42kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
利用C解决传教士与野人问题。有N个传教士和N个野人来到河边准备渡河,河岸有一条船,每次之多可供k个人乘渡。传教士为了安全起见,任何时刻,河两岸以及船上的野人数目总是不能超过传教士的数目(传教士数目为0除外)。求解一个可以令传教士和野人安全从左岸全部摆渡到右岸的过程。-Missionaries and savages in C to solve the problem. There are N and N Savage missionaries came to the river ready to cross the river, there is a river boat, as much as for each individual by crossing k. Missionaries to be safe, at any time, Savage River and the boat can not exceed the number of missionaries is always the number (the number of missionaries, except for the 0). Solving a missionary and Savage can make all the ferry to safety from the left bank of the right bank of the process.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bin/
readme.txt
src/
src/1.txt
src/2.txt
src/a.exe
src/one.cpp
readme.txt
src/
src/1.txt
src/2.txt
src/a.exe
src/one.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.