文件名称:Businessmen_Crossing_SRC
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 8kb
- 下载次数:
- 0次
- 提 供 者:
- le***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
解决商人渡河问题。该问题为:有三个商人,三个强盗,和一条船(船每次只可以载小于等于两个人)他们同在河的一边,想渡过河去,但是必须保证在河的任何一边必须保证商人的数目大于等于强盗的数目,并要满足渡河次数尽可能的少,应该怎么过这条河呢?
-To solve business problems crossing. The problem is: There are three businessmen, three robbers, and a boat (each boat can only contain two people or less) side of the river with them, to get over the river to go, but must ensure that any side of the river must be ensure that the number of merchants greater than equal to the number of robbers, and to meet the few crossing times as much as possible, should be over how the river then?
-To solve business problems crossing. The problem is: There are three businessmen, three robbers, and a boat (each boat can only contain two people or less) side of the river with them, to get over the river to go, but must ensure that any side of the river must be ensure that the number of merchants greater than equal to the number of robbers, and to meet the few crossing times as much as possible, should be over how the river then?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
商人渡河\river.cpp
........\river.dsp
........\river.dsw
........\river.ncb
........\river.opt
........\river.plg
商人渡河
........\river.dsp
........\river.dsw
........\river.ncb
........\river.opt
........\river.plg
商人渡河