文件名称:COIN
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:914byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
一、问题叙述:
一摞硬币共m枚,每枚硬币均正面朝上。取最上面的1枚,将它们翻面后放回原处,然后取最上面的2枚硬币,将它们一起翻面后再放回原处。再取3枚,取4枚,…,直至整摞硬币都按上述方法处理过。接下来再从这摞硬币最上面的1枚开始,重复刚才的做法。这样一直下去,直到这摞硬币中的每一个又都是正面朝上为止。问这种情况是否一定出现?如果出现,则一共需做多少次翻面?-1, describes the problem: one pile a total of m gold coins, each coin are positive upward. Check the top one, turn them back into the original position after the noodle, then check the top two coins and put them together and then turned back into the original noodle. Re-admitted 3, take 4, ..., until the entire pile of coins are handled by the above method. Then again from the top of the pile of coins a start, just repeat the practice. This has been until this pile of coins in each one after another up to date are positive. Must ask whether this is happening? If there is need to make a total of how many times over noodle?
一摞硬币共m枚,每枚硬币均正面朝上。取最上面的1枚,将它们翻面后放回原处,然后取最上面的2枚硬币,将它们一起翻面后再放回原处。再取3枚,取4枚,…,直至整摞硬币都按上述方法处理过。接下来再从这摞硬币最上面的1枚开始,重复刚才的做法。这样一直下去,直到这摞硬币中的每一个又都是正面朝上为止。问这种情况是否一定出现?如果出现,则一共需做多少次翻面?-1, describes the problem: one pile a total of m gold coins, each coin are positive upward. Check the top one, turn them back into the original position after the noodle, then check the top two coins and put them together and then turned back into the original noodle. Re-admitted 3, take 4, ..., until the entire pile of coins are handled by the above method. Then again from the top of the pile of coins a start, just repeat the practice. This has been until this pile of coins in each one after another up to date are positive. Must ask whether this is happening? If there is need to make a total of how many times over noodle?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
COIN_final.m
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.