搜索资源列表
fenshu_xiaoshu
- 通过简单的算法和较合理的数据结构,将所有的分数可以转化成小数。包括循环小数!-This program uses simple data ,and it works well
RecurDecimalPro
- 将分数转化为小数,对徐无限循环小数,能够给出循环节显示,如1/6表示为0.1(6)等-Will be converted to decimal points, infinitely recurring decimal for Xu, able to give a circular section shows, such as 1/6 is expressed as 0.1 (6), etc.
275
- 每输入一行包括两个整形数A和B(A<B),A为分子,B为分母。 Task1.判断是否为有限小数。 Task2.若为循环小数,求出循环小数部分并输出。 -Each input line contains two integers A and B (A <B),A为分子,B为分母。 Task1.判断是否为有限小数。 Task2.若为循环小数,求出循环小数部分并输出。
exchange
- 任何小数都可以被划为分数,但是循环小数的实现和一般的有所区别,本程序主要实现的功能是如何实现将普通小数和循环小数转化为都准化为最简分数。-Any decimal can be classified as a fraction, but the recurring decimal to implement and in general different, the main achievement of the function of this program is how to achieve
circulatingdecinmal
- 求循环小数循环节,效率较高,有较少的时间复杂度和空间复杂度。-get the reptend of one circulating decimals
用链表求循环小数
- 对于任意的真分数 N/M ( 0 < N < M ),均可以求出对应的小数。如果采用链表表示各个小数,对于循环节采用循环链表表示,则所有分数均可以表示为如下链表形式。 输入: N M 输出: 转换后的小数(不超过 50 位) 要求: 仅编写将分数转换为小数的函数 change( int n, int m, NODE * head ) 。 预设代码: /* PRESET CODE BEGIN - NEVER TOUCH CODE BELOW */ #in
pyuqy563
- 给定一个分式A D,A为分子,D为分母,将分式化解成最简形式,例如1 3 0 [3],化成循环小数形式,并用[]将循环节提取出()