guinan

所属分类:数学计算
开发工具:C/C++
文件大小:31KB
下载次数:2
上传日期:2012-06-11 09:14:05
上 传 者lgh1001
说明:  有N个硬币(N为偶数)正面朝上排成一排,每次将N-1个硬币翻过来放在原位置,不断地重复上述过程,直到最后全部硬币翻成反面朝上为止。设计程序让计算机把翻币的最简过程以及翻币次数输出(用*表示正面,O表示反面) 2、有N个硬币(N为奇数)正面朝上排成一排,每次将N-2个硬币翻过来放在原位置,不断地重复上述过程,直到最后全部硬币翻成反面朝上为止。可以让计算机把翻币的最简过程以及翻币次数输出(用*表示正面,O表示反面)
(There are N coins (even) face up in a row, each N-1 coins upside down on the original location, repeating the above process until all coins translated into their reverse side facing up. The design process for the computer to turn the coin of the most simple process, as well as the number of turned coins output (* indicates a positive, O negative) 2, there are N coins (N odd) face up in a row, each N-2 coins upside down on the original location, repeating the above process until all the last coin translated the reverse side facing up. Allows the computer to turn the coin of the most simple process, as well as the number of turned coins output (* indicates a positive, O negative))

文件列表:
guinan\实验报告格式.doc (64481, 2012-05-10)
guinan\归纳.c (1728, 2012-05-10)
guinan\归纳.exe (26087, 2012-05-17)
guinan\归纳.o (1681, 2012-05-17)
guinan (0, 2012-06-11)

近期下载者

相关文件


收藏者