202 Repeating DecimalsThe decimal expansion of the fraction 1/33 is 0:03, where the 03 is used to indicate that the cycle 03repeats indefinitely with ...
分类:
其他好文 时间:
2016-08-16 19:54:44
阅读次数:
169
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:
其他好文 时间:
2016-08-10 06:35:48
阅读次数:
172
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:
其他好文 时间:
2016-08-08 12:43:17
阅读次数:
115
题意:给出分子和分母,用字符串表示结果,循环的部分用“()”括起来。 思路: 模拟笔算, 最初根据1/99的情况,设想用path记录余数相同时的间隔步长,但只能用于处理(00..0n)的情况,其中n为[1,9]; 后来采取网上看到用map记录<余数,出现位置>的想法。 通过判断map中key是否重复 ...
分类:
其他好文 时间:
2016-07-24 20:56:10
阅读次数:
190
一、自定义控件(一) --- 自定义属性TextView
1,定义属性,制作attrs.xml文件;
属性值:
string,color,attr,array,bool,declare-styleable,dimen,drawable,eat-comment,fraction,
integer,integer-array,item,plurals,string-...
分类:
移动开发 时间:
2016-07-19 10:26:54
阅读次数:
328
配置注入action,dao层,service层 <!-- fraction --> <bean id="fractionAction" class="cn.lt.action.FractionAction" scope="prototype"> <property name="fractionSe ...
分类:
编程语言 时间:
2016-07-02 17:28:09
阅读次数:
170
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. Given two integers representing the ...
分类:
其他好文 时间:
2016-06-19 06:42:11
阅读次数:
120
Fraction Accepted : 168 Submit : 1061 Time Limit : 1000 MS Memory Limit : 65536 KB Fraction Fraction Problem Description: Everyone has silly periods, ...
分类:
其他好文 时间:
2016-06-09 22:10:13
阅读次数:
219
In standard rendering, the red, green and blue values for a pixel are each represented by a fraction in the range 0..1, where 0 represents zero intens ...
分类:
其他好文 时间:
2016-05-31 22:17:42
阅读次数:
243