文件名称:A-wise-man-live
- 所属分类:
- 其他智力游戏
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 11kb
- 下载次数:
- 0次
- 提 供 者:
- j**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
问题的提出:17世纪法国数学家加斯帕的一本《数学的游戏问题》描述了许多有趣问题,约瑟问题就是其中之一:
15名基督*和15名异*同乘一船航行,途中风浪大作,危机万分,领航者告诉大家,只要将全船的一半人投入海中,其余人就能幸免。大家都同意这个办法,并协定者30人围成一圈;由第一个人起报数,每数至第9人便把他投入海中,下一个接着从1开始报数,第9人又被投入海中,依次循环,直至剩下15人为止。问题是如何排法使投入海中的人全为异*?
编程的思路:此问题有人把它的答案隐示于下列詩句中:
From numbers’ aid and art, (依靠数字的和魔力,)
Never will fame depart! (声誉决不会离你而去!)
这句诗中元音字母依次为:oueaiaaeeiaeea,分别用1、2、3、4、5代替a、e、i、o、u,便得一排数(划线得数字表示基督*,不划线的表示异*)。
4 5 2 1 3 1 1 2 2 3 1 2 2 1 故所求排法诗4个基督*,5个异*,再2个基督*,1个异*,…可以证明,这种排法所有的基督*都是安全的。
-The problem put forward: 17 th century French mathematician gaspar s book "the game of mathematics problems describes many interesting questions, Joseph is one of them:
15 Christian and pagan 15 with a ship sailing by, on the wind was blowing and crisis extremely, pilot told everyone, as long as the whole ship half of them into the sea, and the rest will survive. We all agree with this method, and the agreement is 30 a circle By the first man up to number off, each number to 9 people gave him into the sea, and the next then from 1 began to sound off, who was put into the sea and 9, in circulation, until 15 people left so far. The question is how to row in the sea to input method for all pagan?
Programming ideas: this was the answer to the question it concealed in the following lines:
From Numbers aid and art, (depending on the number and the magic,)
Never will fame depart! (reputation will never leave you!)
This poem of vowels in order as: oueaiaaeeiaeea, respectively for 1, 2,
15名基督*和15名异*同乘一船航行,途中风浪大作,危机万分,领航者告诉大家,只要将全船的一半人投入海中,其余人就能幸免。大家都同意这个办法,并协定者30人围成一圈;由第一个人起报数,每数至第9人便把他投入海中,下一个接着从1开始报数,第9人又被投入海中,依次循环,直至剩下15人为止。问题是如何排法使投入海中的人全为异*?
编程的思路:此问题有人把它的答案隐示于下列詩句中:
From numbers’ aid and art, (依靠数字的和魔力,)
Never will fame depart! (声誉决不会离你而去!)
这句诗中元音字母依次为:oueaiaaeeiaeea,分别用1、2、3、4、5代替a、e、i、o、u,便得一排数(划线得数字表示基督*,不划线的表示异*)。
4 5 2 1 3 1 1 2 2 3 1 2 2 1 故所求排法诗4个基督*,5个异*,再2个基督*,1个异*,…可以证明,这种排法所有的基督*都是安全的。
-The problem put forward: 17 th century French mathematician gaspar s book "the game of mathematics problems describes many interesting questions, Joseph is one of them:
15 Christian and pagan 15 with a ship sailing by, on the wind was blowing and crisis extremely, pilot told everyone, as long as the whole ship half of them into the sea, and the rest will survive. We all agree with this method, and the agreement is 30 a circle By the first man up to number off, each number to 9 people gave him into the sea, and the next then from 1 began to sound off, who was put into the sea and 9, in circulation, until 15 people left so far. The question is how to row in the sea to input method for all pagan?
Programming ideas: this was the answer to the question it concealed in the following lines:
From Numbers aid and art, (depending on the number and the magic,)
Never will fame depart! (reputation will never leave you!)
This poem of vowels in order as: oueaiaaeeiaeea, respectively for 1, 2,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
智者生存\4_22.cpp
........\4_22.dsp
........\4_22.dsw
........\4_22.ncb
........\4_22.opt
........\4_22.plg
........\智者生存.doc
智者生存
........\4_22.dsp
........\4_22.dsw
........\4_22.ncb
........\4_22.opt
........\4_22.plg
........\智者生存.doc
智者生存