题目链接:space=1&num=1725" target="_blank">http://acm.timus.ru/problem.aspx?space=1&num=1725Every fall, all movies are shown to a full house at one of the...
分类:
其他好文 时间:
2016-01-13 15:51:20
阅读次数:
147
There are a row ofnhouses, each house can be painted with one of thekcolors. The cost of painting each house with a certain color is different. You ha...
分类:
其他好文 时间:
2016-01-13 02:03:22
阅读次数:
197
用DP思维很好解决 注意终止条件 这里添加了一个数组 length = nums.length + 1;代码:public class Solution { public int rob(int[] nums) { int[] money = new int[nums.lengt...
分类:
其他好文 时间:
2016-01-10 08:12:04
阅读次数:
206
There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain ...
分类:
其他好文 时间:
2016-01-02 08:41:24
阅读次数:
155
There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo...
分类:
其他好文 时间:
2015-12-23 14:30:27
阅读次数:
393
SELECT TOP 5 * FROM hos_house WHERE HMID NOT IN( SELECT TOP 5 HMID FROM hos_house WHERE PRICE>2500 ORDER BY PRICE) AND PRICE>2500 ORDER BY PRICE---...
分类:
数据库 时间:
2015-12-15 01:03:51
阅读次数:
174
这题,是不能连续抢两间相邻的店铺。我不知道是不是一个环,姑且算作不是一个环。 如果你已经来到了第n间店铺,那么你有两个选择。 1.抢:sum[n] = sum[n - 2] +n.value 。第n - 1不能抢 2.不抢:你的总收益来到前面一家店的收益总和sum[n] =sum[n - ...
分类:
其他好文 时间:
2015-12-14 18:28:58
阅读次数:
116
题目:There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certa...
分类:
其他好文 时间:
2015-12-03 07:12:06
阅读次数:
127
public class Solution { public int minCostII(int[][] costs) { int n = costs.length; if (n == 0) { return 0; } ...
分类:
其他好文 时间:
2015-12-01 08:26:19
阅读次数:
112
接着之前的[css]我要用css画幅画(四), 这次我给小明和静静增加了对话,用了简单的动画效果。github:https://github.com/bee0060/Css-Paint, 完整代码在pages/sun-house-4.html和相关的css中可以找到demo:http://bee00...
分类:
Web程序 时间:
2015-11-27 17:31:16
阅读次数:
282