豆豆简历馆

位置:首页 > 面试 > 面试笔试

过河问题

过河问题
一家六口去游玩,爸爸、妈妈、两个儿子、两个女儿,在路上遇到一个越狱的犯人,在危机万分的时候来了一个警察,铐住了犯人。他们一块往回走,遇到一条小河,河上有一个小竹筏。
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
标签:过河