- Category:
- Network develop
- Tags:
-
- File Size:
- 1kb
- Update:
- 2018-04-22
- Downloads:
- 0 Times
- Uploaded by:
- 123zl
Description: 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.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
农夫过河.cpp | 4531 | 2017-04-12 |