字段摘要staticintMAX_VALUE 保持 int 类型的最大值的常量可取的值为
231-1。staticintMIN_VALUE 保持 int 类型的最小值的常量可取的值为 -231。staticintSIZE 以二进制补码形式表示 int
值的位数。staticClassTYPE ...
分类:
编程语言 时间:
2014-05-12 15:49:08
阅读次数:
423
Problem DescriptionThere are n people and n
target, everyone should get one target, no two people get the same target, the
last one who get the target...
分类:
其他好文 时间:
2014-05-06 09:00:51
阅读次数:
354
如int a=Integer.parseInt(f.trim());语句中String 转换成int
时 f要加trim()方法,不然会报错。
分类:
其他好文 时间:
2014-05-06 01:01:43
阅读次数:
291
Integer InquiryTime Limit: 2000/1000 MS
(Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s):
11678Accepted Submission(s): 2936Pr...
分类:
其他好文 时间:
2014-05-06 00:44:43
阅读次数:
355
Exception in thread "main"
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to
[Ljava.lang.Integer; at com.bupt.acm.test.TestArrayList...
分类:
编程语言 时间:
2014-05-06 00:43:46
阅读次数:
509
技术要点一个存储过程包括名字、参数列表,以及可以包括很多SQL语句的SQL语句集。下面为一个存储过程的定义过程:create procedure
proc_name (in parameter integer)begindeclare variable varchar(20);if paramete...
分类:
数据库 时间:
2014-05-06 00:04:50
阅读次数:
433
本实验采用Spring中配置Action,Spring代理生成Struts的类-->Dept.javapackage
cn.itcast.domain;public class Dept { private Integer id; private String deptno;
private Str...
分类:
其他好文 时间:
2014-05-06 00:00:14
阅读次数:
333
ACM 巴什博弈 kiki's game hdu2147 PN表格构建...
分类:
其他好文 时间:
2014-05-02 22:43:12
阅读次数:
393
本题因为数据量小,可以使用暴力法,时间效率是O(n^3)
但是这里巧用最大子段和的思想,可以把时间效率降到O(n)
思想:
1 想使用一个新的数列,计算连续出现了多少个1和连续出现了多少个零
2 求这个新数列的最大子段和
3 Flip最大子段中的 0 和 1,
4 计算出结果
比暴力法复杂很多了,但是时间效率却提高了三个档次。...
分类:
其他好文 时间:
2014-05-02 10:39:46
阅读次数:
584
leetcode, Jump Game , 递推求解...
分类:
其他好文 时间:
2014-05-02 05:10:22
阅读次数:
181