文件名称:FindBase
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:10.29kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
同一个数会由于采用不同的基数而使得其表现的形式是完全不一样的,在我们的学习中,我们熟悉的基数有10进制、12进制、60进制、2进制、8进制和16进制。比如数据12,如果我们用2进制表示,则它就是1100;如果用3进制表示就是110;如果用8进制表示则是14。我们的编程任务就是与数的进制(也就是基数)有关。
程序中我们会给大家很多个数对(假设每个数对的数用X和Y表示),程序需要解决的问题就是为X和Y各选择一个最小的基数,以使得这两个数在其选择的基数上是一对相等的数。
例如,12和5这个数对,我们可以为12选择基数3,为5选择基数6,这样一来12(base 3)=5(base 6),因为12(base 3)就是10进制数5,而5(base 6)也是10进制数中的5。
程序的输入是通过文件完成的。
文件中的每一行都包含一个数对X和Y,两个数通过一个或多个空格符分割,与X和Y相关联的有效基数值范围为2~36。X和Y的合理数值表示字符包括0—9和A-Z(表示数值10-35)。
文件的最后一行用一个数字0表示输入的结束。-same number will be different because of the base and make its performance in the form of a completely different, In our study, we are familiar with the base 229 10, 229 12, 229 60, 229 2. 8-band 16-band. For example, 12 data, if we use the two-band said, it is 1100; If three-band said is 110; If eight 229 said it is 14. Our task is programming with a number of 229 (or base). We will process all of the many numbers (on the assumption that each number on the number of X-and Y said), procedures need to address the issue of the X and Y choose a minimum base, This makes two to a few in their chosen base is the equivalent of a few. For example, 12 and 5, the figure right, we will be able to choose 12 base 3 to 6 base 5 choice, This one to 12 (base 3) = 5 (base 6), because 12 (base 3) 229 10
程序中我们会给大家很多个数对(假设每个数对的数用X和Y表示),程序需要解决的问题就是为X和Y各选择一个最小的基数,以使得这两个数在其选择的基数上是一对相等的数。
例如,12和5这个数对,我们可以为12选择基数3,为5选择基数6,这样一来12(base 3)=5(base 6),因为12(base 3)就是10进制数5,而5(base 6)也是10进制数中的5。
程序的输入是通过文件完成的。
文件中的每一行都包含一个数对X和Y,两个数通过一个或多个空格符分割,与X和Y相关联的有效基数值范围为2~36。X和Y的合理数值表示字符包括0—9和A-Z(表示数值10-35)。
文件的最后一行用一个数字0表示输入的结束。-same number will be different because of the base and make its performance in the form of a completely different, In our study, we are familiar with the base 229 10, 229 12, 229 60, 229 2. 8-band 16-band. For example, 12 data, if we use the two-band said, it is 1100; If three-band said is 110; If eight 229 said it is 14. Our task is programming with a number of 229 (or base). We will process all of the many numbers (on the assumption that each number on the number of X-and Y said), procedures need to address the issue of the X and Y choose a minimum base, This makes two to a few in their chosen base is the equivalent of a few. For example, 12 and 5, the figure right, we will be able to choose 12 base 3 to 6 base 5 choice, This one to 12 (base 3) = 5 (base 6), because 12 (base 3) 229 10
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Find Base/Debug
Find Base/Find Base/base.in.txt
Find Base/Find Base/base.out.txt
Find Base/Find Base/Debug
Find Base/Find Base/Find Base.cpp
Find Base/Find Base/Find Base.dsp
Find Base/Find Base/Find Base.plg
Find Base/Find Base
Find Base/Find Base.dsw
Find Base/Find Base.ncb
Find Base/Find Base.opt
Find Base
www.dssz.com.txt
Find Base/Find Base/base.in.txt
Find Base/Find Base/base.out.txt
Find Base/Find Base/Debug
Find Base/Find Base/Find Base.cpp
Find Base/Find Base/Find Base.dsp
Find Base/Find Base/Find Base.plg
Find Base/Find Base
Find Base/Find Base.dsw
Find Base/Find Base.ncb
Find Base/Find Base.opt
Find Base
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.