文件名称:mandc
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:18.11kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有N个传教士和N个野人来到河边准备渡河,河岸有一条船,每次之多可供k个人乘渡。传教士为了安全起见,任何时刻,河两岸以及船上的野人数目总是不能超过传教士的数目(传教士数目为0除外)。求解一个可以令传教士和野人安全从左岸全部摆渡到右岸的过程。2、 可执行程序可以通过命令行参数传入输入输出文件路径,通过读取命令行参数指定的输入文件得到初始状态,并将结果输出到指定的输出文件中。
具体格式为:<可执行文件> <输入文件路径> <输出文件路径>
-N-missionaries and N Savage came to the river to prepare to cross the river, the banks of a ship, each as much as available-for-k individuals multiply crossing. Missionaries in order to be safe, at any moment, the two sides of the river as well as on board the Savage number always can not exceed the number of missionaries (missionaries number other than 0). Solving a safety of missionaries and Savage can make all the ferry from the left bank to the right bank of the process. Executable program can be passed in via the command line parameter input and output file path to the initial state by reading the command line parameter to specify the input file, and output the results to the specified output file. The specific format: < executable file> < input file path> < output file path>
具体格式为:<可执行文件> <输入文件路径> <输出文件路径>
-N-missionaries and N Savage came to the river to prepare to cross the river, the banks of a ship, each as much as available-for-k individuals multiply crossing. Missionaries in order to be safe, at any moment, the two sides of the river as well as on board the Savage number always can not exceed the number of missionaries (missionaries number other than 0). Solving a safety of missionaries and Savage can make all the ferry from the left bank to the right bank of the process. Executable program can be passed in via the command line parameter input and output file path to the initial state by reading the command line parameter to specify the input file, and output the results to the specified output file. The specific format: < executable file> < input file path> < output file path>
(系统自动生成,下载前可以参看下载内容)
下载文件列表
src/boat.cpp
bin/in.txt
bin/MissionariesAndCannibals.exe
bin/out.txt
src
bin
bin/in.txt
bin/MissionariesAndCannibals.exe
bin/out.txt
src
bin
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.