文件名称:gopassriver
介绍说明--下载内容均来自于网络,请自行研究使用
题目:设有n个传教士和m个野人来到河边,打算乘一只船从右岸到左岸去。该船的负载能力为两人。在任何时候,如果野人人数超过传教士人数,野人就会把传教士吃掉。他们怎样才能用这条船安全的把所有人都渡过河去?
输入m,n的数值,程序将返回操作过程-Title: with n and m of the missionaries came to a savage river, intended to take a boat to go from the right bank to the left bank. The ship s load capacity for two. At any time, if the Savage more than the number of missionaries, the missionaries will be eaten Savage. How can they use the ship to safety all through the river go? Input m, n values, the program will return to operation
输入m,n的数值,程序将返回操作过程-Title: with n and m of the missionaries came to a savage river, intended to take a boat to go from the right bank to the left bank. The ship s load capacity for two. At any time, if the Savage more than the number of missionaries, the missionaries will be eaten Savage. How can they use the ship to safety all through the river go? Input m, n values, the program will return to operation
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AI.c