文件名称:Algorithm2
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 刘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
利用程序求出实例的结果。
1、火柴棍游戏:2堆火柴棍,2人轮流拿。拿的规则如下:1、每次至少拿一根;2、只能从一堆里拿;3、第一堆火柴棍最多拿3根;4、第二堆火柴棍最多拿当前所有火柴棍的一半。谁拿完以后只剩一根火柴棍为赢家。问开始2堆都是20根火柴棍,你想赢,你先拿还是后拿?-The use of procedures results obtained instance. 1, matchstick game: 2 heap of matchsticks, take turns. Take the rules are as follows: 1, each to take at least one 2, can only get from a pile 3, a pile of matchstick up to get 3 4, the second pile of matchstick up to take all matchstick half. Who get finished after only a matchstick winner. 2 heap are asked to start 20 matchstick, you want to win, you acquire or take?
1、火柴棍游戏:2堆火柴棍,2人轮流拿。拿的规则如下:1、每次至少拿一根;2、只能从一堆里拿;3、第一堆火柴棍最多拿3根;4、第二堆火柴棍最多拿当前所有火柴棍的一半。谁拿完以后只剩一根火柴棍为赢家。问开始2堆都是20根火柴棍,你想赢,你先拿还是后拿?-The use of procedures results obtained instance. 1, matchstick game: 2 heap of matchsticks, take turns. Take the rules are as follows: 1, each to take at least one 2, can only get from a pile 3, a pile of matchstick up to get 3 4, the second pile of matchstick up to take all matchstick half. Who get finished after only a matchstick winner. 2 heap are asked to start 20 matchstick, you want to win, you acquire or take?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Algorithm2.java