文件名称:jiaotusanku
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:167.9kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
“狡兔三窟”是说兔子有很多可以躲藏的洞穴来保护自己的安全,现在有一只狐狸,一只兔子,还有兔子的10个洞(洞口编号0~9)。
狐狸是这样找兔子的,首先:狐狸站在0号洞口,步长是1(此时步长为1),则下一个洞口是1号洞,站在1号洞口,步长+1(此时步长为2),则下一个洞口是3号洞,站在3号洞口,步长+1(此时步长为3),则下一个洞口是6号洞...等等
问:狐狸能不能抓到兔子,请写代码证明。-The "Jiaotusanku" means many rabbits can hide the cave to protect themselves, now let s hypothesis that there have a fox, a rabbit and 10 holes (hole numbers 0 to 9) for rabbits.
Fox so find rabbit, First hole: fox standing No. 0, step 1 (step 1), the next hole is on the 1st hole, standing on the 1st hole, step+1 (this 2) time step, the next hole is on the 3rd hole, standing on the 3rd hole, step+1 (step 3), the next hole is on the 6th hole ... etc.
Q: fox can catch the rabbit, please write code to prove.
狐狸是这样找兔子的,首先:狐狸站在0号洞口,步长是1(此时步长为1),则下一个洞口是1号洞,站在1号洞口,步长+1(此时步长为2),则下一个洞口是3号洞,站在3号洞口,步长+1(此时步长为3),则下一个洞口是6号洞...等等
问:狐狸能不能抓到兔子,请写代码证明。-The "Jiaotusanku" means many rabbits can hide the cave to protect themselves, now let s hypothesis that there have a fox, a rabbit and 10 holes (hole numbers 0 to 9) for rabbits.
Fox so find rabbit, First hole: fox standing No. 0, step 1 (step 1), the next hole is on the 1st hole, standing on the 1st hole, step+1 (this 2) time step, the next hole is on the 3rd hole, standing on the 3rd hole, step+1 (step 3), the next hole is on the 6th hole ... etc.
Q: fox can catch the rabbit, please write code to prove.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
狡兔三窟/Debug/vc60.idb
狡兔三窟/Debug/vc60.pdb
狡兔三窟/Debug/test.pch
狡兔三窟/Debug/test.exe
狡兔三窟/Debug/test.pdb
狡兔三窟/Debug/test.ilk
狡兔三窟/Debug/test.obj
狡兔三窟/test.plg
狡兔三窟/test.dsp
狡兔三窟/test.ncb
狡兔三窟/test.dsw
狡兔三窟/test.cpp
狡兔三窟/test.opt
狡兔三窟/Debug
狡兔三窟
狡兔三窟/Debug/vc60.pdb
狡兔三窟/Debug/test.pch
狡兔三窟/Debug/test.exe
狡兔三窟/Debug/test.pdb
狡兔三窟/Debug/test.ilk
狡兔三窟/Debug/test.obj
狡兔三窟/test.plg
狡兔三窟/test.dsp
狡兔三窟/test.ncb
狡兔三窟/test.dsw
狡兔三窟/test.cpp
狡兔三窟/test.opt
狡兔三窟/Debug
狡兔三窟
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.