Introduction - If you have any usage issues, please Google them yourself
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>