2016年6月7日

Arrays.asList 小结

摘要: Arrays.asList()返回一个实现了List接口的类,但是不支持add,remove等改变尺寸的操作。 Arrays.asList源码如下 这里有一个大坑,我开始没仔细看,以为返回的就是java.util.ArrayList,可实际上此ArrayList是Arrays里面的私有静态内部类,代 阅读全文

posted @ 2016-06-07 23:11 北门煎饼东门串儿 阅读(145) 评论(0) 推荐(0) 编辑

1005. Spell It Right (20)

摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文

posted @ 2016-06-07 19:55 北门煎饼东门串儿 阅读(159) 评论(0) 推荐(0) 编辑

1006. Sign In and Sign Out (25)

摘要: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文

posted @ 2016-06-07 19:53 北门煎饼东门串儿 阅读(213) 评论(0) 推荐(0) 编辑

1002. A+B for Polynomials (25)

摘要: This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one test case. Each case occupies 2 lines, a 阅读全文

posted @ 2016-06-07 11:12 北门煎饼东门串儿 阅读(173) 评论(0) 推荐(0) 编辑

Java中浮点数能连续精确表示整数的范围

摘要: 转自http://blog.csdn.net/seizef/article/details/5571783#ref_1,有删改。 先简单介绍一下浮点数在计算机中的组成,在Java中采用的浮点数表示法是IEEE754标准。 任意一个二进制浮点数V可以表示成下面的形式,进一步说明请参照[1]: (1)( 阅读全文

posted @ 2016-06-07 10:07 北门煎饼东门串儿 阅读(825) 评论(0) 推荐(0) 编辑

导航