题意:
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one share of the stock multiple ti...
分类:
其他好文 时间:
2014-11-27 20:36:25
阅读次数:
215
/**************************************************************
1087. All Roads Lead to Rome (30)
时间限制
200 ms
内存限制
65536 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
Indeed there are many different t...
分类:
其他好文 时间:
2014-11-27 09:18:36
阅读次数:
195
李刚轻量级JavaEE第六章的坑。。艹李刚自己有没试过这些代码的啊,6.4这一份HqlQuery.java里需要的表,根本就跟他提供的sql脚本对不上啊。。坑爹啊,而且字符编码集也有问题。出现这个原因是编码不统一的问题。首先字符编码集有GBK、GB2312、UTF8,区别详见http://down....
分类:
数据库 时间:
2014-11-27 06:41:37
阅读次数:
192
题目链接:点击打开链接
题意:
用1*1*2的方块搭出2*2*N的方块的方法数
则对于每一层有9种状态
0、全为1.
1、
00
__
0表示这个为空,__表示这两个平躺着一个方块
2、
00
11
0表示这格为空,1表示这格方块是直立放着的。
如此类推除第0种共8种状态,然后就是简单的转移。
而其他状态是无效的,不会参与到答案的计算中,所以不需要考虑
#in...
分类:
其他好文 时间:
2014-11-27 01:41:01
阅读次数:
281
Description
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many...
分类:
其他好文 时间:
2014-11-26 22:40:25
阅读次数:
253
多对多可通过两个多对一实现(把第三张表抽取出一个实体,然后两个多对应一个新实体)
多对多会建立三张表,第三张表存放两个外键分别指向两个多;然后两个外键作为第三张表的联合主键
一、单向关联映射
Many(维护端:User)
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//...
分类:
Web程序 时间:
2014-11-26 21:04:11
阅读次数:
229
N-1关联映射原理:在多的一端加入一个外键,指向一的一端
Many(维护端:User)
...
分类:
Web程序 时间:
2014-11-26 18:55:10
阅读次数:
244
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:
其他好文 时间:
2014-11-26 14:01:07
阅读次数:
165
Heli tracker. #1,2,3 as Gen Ace Battery. #4,5,6 as Nano Battery11/25/2014 Lightly crashed, servo arm brake. Too dark to see heli level. #4,5,...
分类:
其他好文 时间:
2014-11-26 13:36:38
阅读次数:
224
Description
The Problem
The first project for the poor student was to make a calculator that can just perform the basic arithmetic operations.
But like many other university students he d...
分类:
其他好文 时间:
2014-11-25 23:39:30
阅读次数:
226