农夫过河问题求解

上传者: zy1640168720 | 上传时间: 2020-01-13 03:16:53 | 文件大小: 40KB | 文件类型: zip
一个农夫带着—只狼、一只羊和—棵白菜,身处河的南岸。他要把这些东西全部运到北岸。他面前只有一条小船,船只能容下他和—件物品,另外只有农夫才能撑船。如果农夫在场,则狼不能吃羊,羊不能吃白菜,否则狼会吃羊,羊会吃白菜,所以农夫不能留下羊和白菜自己离开,也不能留下狼和羊自己离开,而狼不吃白菜。请求出农夫将所有的东西运过河的方案。

文件下载

资源详情

[{"title":"( 41 个子文件 40KB ) 农夫过河问题求解","children":[{"title":"农夫过河问题","children":[{"title":"test","children":null,"spread":false},{"title":"build.xml <span style='color:#111;'> 3.62KB </span>","children":null,"spread":false},{"title":"manifest.mf <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"river","children":[{"title":"River.java <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false}],"spread":true},{"title":"River1","children":[{"title":"Goods.java <span style='color:#111;'> 379B </span>","children":null,"spread":false}],"spread":true},{"title":"River3","children":[{"title":"Node.java <span style='color:#111;'> 694B </span>","children":null,"spread":false},{"title":"Goods.java <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"LinList.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"List.java <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"River.java <span style='color:#111;'> 8.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"River2","children":[{"title":"Node.java <span style='color:#111;'> 694B </span>","children":null,"spread":false},{"title":"Goods.java <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"LinList.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"List.java <span style='color:#111;'> 436B </span>","children":null,"spread":false},{"title":"River.java <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false},{"title":"Test.java <span style='color:#111;'> 600B </span>","children":null,"spread":false}],"spread":true},{"title":"Rever4","children":[{"title":"Goods.java <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"River.java <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"nbproject","children":[{"title":"build-impl.xml <span style='color:#111;'> 47.89KB </span>","children":null,"spread":false},{"title":"private","children":[{"title":"private.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"private.properties <span style='color:#111;'> 97B </span>","children":null,"spread":false}],"spread":true},{"title":"project.xml <span style='color:#111;'> 513B </span>","children":null,"spread":false},{"title":"genfiles.properties <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"build","children":[{"title":"classes","children":[{"title":".netbeans_automatic_build <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"river","children":[{"title":"Goods.class <span style='color:#111;'> 449B </span>","children":null,"spread":false},{"title":"River.rs <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"River.class <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false}],"spread":true},{"title":"River1","children":[{"title":"Goods.class <span style='color:#111;'> 451B </span>","children":null,"spread":false}],"spread":true},{"title":"River3","children":[{"title":"Goods.class <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"List.class <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"Node.class <span style='color:#111;'> 1016B </span>","children":null,"spread":false},{"title":"LinList.class <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"River.class <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"River2","children":[{"title":"Test.class <span style='color:#111;'> 869B </span>","children":null,"spread":false},{"title":"Goods.class <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"List.class <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"Node.class <span style='color:#111;'> 1016B </span>","children":null,"spread":false},{"title":"LinList.class <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"River.class <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false}],"spread":true},{"title":"Rever4","children":[{"title":"Goods.class <span style='color:#111;'> 596B </span>","children":null,"spread":false},{"title":"River.class <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • xuevvli :
    很好,可以借鉴
    2015-05-09
  • 南瓜小希 :
    不是完全代码
    2013-01-03

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明