Introduction - If you have any usage issues, please Google them yourself
A farmer with a wolf, a sheep and a cabbage is on the South Bank of the river. He wants to carry all these things to the north bank. There was only a small boat in front of him. The boat could only hold him and an object. Only the farmer could support the boat. If the farmer is present, the wolf can't eat the sheep, and the sheep can't eat cabbage. Otherwise, the wolf will eat the sheep and the sheep will eat the cabbage. So the farmer can not leave the sheep and cabbage himself to leave, nor can he leave the wolf and the sheep themselves to leave, but the wolf does not eat cabbage. It is required to give the farmer a plan to transport everything across the river.