当前位置:荟萃屋 > 面试 > 面试笔试 > 过河问题
手机版

过河问题

来源:荟萃屋 阅读:2.28W 次
过河问题
一家六口去游玩,爸爸、妈妈、两个儿子、两个女儿,在路上遇到一个越狱的犯人,在危机万分的时候来了一个警察,铐住了犯人。他们一块往回走,遇到一条小河,河上有一个小竹筏。
1、一次只能过两个人
2、只有爸爸妈妈和警察能操纵竹筏
3、如果警察和犯人分开了,犯人就会伤害这家人(犯人单独在河的一边不会跑)
4、儿子和爸爸分开了,就会被旁边的妈妈骂;女儿和妈妈分开了,也会被爸爸骂。(瞧这一家人!)
如何让他们六个人都过河?
1、police and prisoner ,police回来
2、police and a son, police and prisoner回来
3、father and the other son,father回来
4、mother and father ,mother回来
5、mother and a daughter ,mother and father回来
6、mother and the other daughter ,mother回来
7、mother and father come
end
: --
如需要8个人全部过河,增加以下步骤:
8、mother/father回来
9、police and mother/father 过河,police回来
10、police and prisoner过河
over
本文链接:https://www.huicuiwu.com/msfl/bishi/2pzgq.html

Copyright © 2024. 荟萃屋 All right reserved. 浙ICP备20165268号-2

文字美图素材,版权属于原作者。部分文章内容由网友提供推送时因种种原因未能与原作者联系上,若涉及版权问题,敬请原作者联系我们,立即处理。