文件名称:guinan
介绍说明--下载内容来自于网络,使用问题请自行百度
有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)
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
guinan/归纳.c
guinan/归纳.exe
guinan/归纳.o
guinan
guinan/归纳.c
guinan/归纳.exe
guinan/归纳.o
guinan
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.