文件名称:抢 30
介绍说明--下载内容均来自于网络,请自行研究使用
这是中国民间的一个游戏。两人从1开始轮流报数,每人每次
可报一个数或两个连续的数,谁先报到30,谁就为胜方。
*问题分析与算法设计
本题与上题类似,算法也类似,所不同的是,本谁先走第一
步是可选的。若计算机走第一步,那么计算机一定是赢家。若人
先走一步,那么计算机只好等待人犯错误,如果人先走第一步且
不犯错误,那么人就会取胜;否则计算机会抓住人的一次错误使
自己成为胜利者。-This a popular Chinese game. They started from a few newspaper rotation, each person may take a few or several consecutive two, the first to report back in 30, for whoever wins.* Analysis and design of the algorithm with that title on similar algorithms are also similar, the difference is that the first step ahead Who is optional. If computers take the first step, then the computer must be a winner. If one step ahead, then the computer had to wait for others to make mistakes, and if a person does not make mistakes ahead of the first step, then the people will win; Otherwise, the computer will seize the error once made himself a winner.
可报一个数或两个连续的数,谁先报到30,谁就为胜方。
*问题分析与算法设计
本题与上题类似,算法也类似,所不同的是,本谁先走第一
步是可选的。若计算机走第一步,那么计算机一定是赢家。若人
先走一步,那么计算机只好等待人犯错误,如果人先走第一步且
不犯错误,那么人就会取胜;否则计算机会抓住人的一次错误使
自己成为胜利者。-This a popular Chinese game. They started from a few newspaper rotation, each person may take a few or several consecutive two, the first to report back in 30, for whoever wins.* Analysis and design of the algorithm with that title on similar algorithms are also similar, the difference is that the first step ahead Who is optional. If computers take the first step, then the computer must be a winner. If one step ahead, then the computer had to wait for others to make mistakes, and if a person does not make mistakes ahead of the first step, then the people will win; Otherwise, the computer will seize the error once made himself a winner.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
抢 30.txt