var digitUppercase = function(n) { var fraction = ['角', '分']; var digit = [ '零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖' ]; var unit = [ ['元', '万' ...
分类:
Web程序 时间:
2017-03-14 16:35:46
阅读次数:
197
需求分析: 对于刚学习完四则运算的小朋友们来说,是需要一定的练习的。练习过程中能及时发现运算算错是很重要的。 功能设计: 能随机产生100以内简单的加减乘除,以及分子分母均不超过20的分数运算。并计算正确率。 程序设计: 基于分数运算编写的函数: Fraction getResult2(Fracti ...
分类:
其他好文 时间:
2017-03-05 23:12:05
阅读次数:
276
My chin raised a fraction. 我的下巴抬起来了一点。 我略微抬起下颚。 "No, she did not send me here. I sent myself." 不是,我不是被送来这里的,是我自己要来的。 His eyebrows knit together. 他的眉毛同 ...
分类:
其他好文 时间:
2016-12-14 18:29:48
阅读次数:
189
500个英语常用表达1. a big headache令人头痛的事情2. a fraction of 一部分3. a matter of concern 焦点4. a series of 一系列,一连串above all 首先,尤其是5. absent from不在,缺席6. abundant in ...
分类:
其他好文 时间:
2016-12-01 14:40:14
阅读次数:
254
Fraction Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0 Problem Desc ...
分类:
其他好文 时间:
2016-10-04 14:09:00
阅读次数:
471
A. Graph Coloring 答案为$1$很好判,为$2$只需要二分图染色,对于$3$,首先爆搜哪些边要染成第$3$种颜色,然后二分图染色判定即可。 B. Decimal Fraction 枚举前缀,那么只需要求出后面部分的最小循环节即可,将串翻转之后进行KMP,循环节长度$=i-next[i ...
分类:
其他好文 时间:
2016-09-30 23:45:55
阅读次数:
199
测试项目:减一四则运算生成程序 项目成员:张金生 张政 工程地址:https://coding.net/u/jx8zjs/p/paperOne/git ssh://git@git.coding.net:jx8zjs/paperOne.git 测试单元概览: 1. Fraction: 分数类,支持分数 ...
分类:
其他好文 时间:
2016-09-28 22:22:48
阅读次数:
172
一、针对上周的程序改进: (1)除零问题:生成题目的时候同时计算,try catch异常,若有异常则重新生成 测试用例为2/(2-2),如下会产生分母不应为0的异常 这里的FractionException有多种类型,比如分母不能为0、计算时超出数值范围、无法转化为Fraction等。 (2)参数化 ...
分类:
其他好文 时间:
2016-09-17 14:50:36
阅读次数:
158
Description: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part ...
分类:
其他好文 时间:
2016-09-11 22:43:02
阅读次数:
150
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-24 09:53:02
阅读次数:
168