搜索资源列表
Savage-and-preachers
- 从前有一条河,河的左岸有m个传教士、m个野人和一艘最多可乘n人的小船。约定左岸,右岸和船上或者没有传教士,或者野人数量少于传教士,否则野人会把传教士吃掉。搜索一条可使所有的野人和传教士安全渡到右岸的方案。-Once upon a time there was a river, on the left bank of the river have m a missionary, m a savage and a ship can take up a man s boat. On the agree