•  详细信息
  • 返回首页
  • (笔试题目) 过河问题
    2006-12-07 21:23:33 来源: 应届生求职网
    PHP就业班,每天1600个职位等着你,月收入3000元。
     

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

    Power By:搜职网