There are a row of houses, each house can be painted with three colors red, blue and green. The cost of painting each house with a certain color is di...
分类:
其他好文 时间:
2015-03-18 06:28:29
阅读次数:
128
本文介绍了使用DOM的简单方法实现动态加载图片的功能。 前文介绍了: 1 DOM四个常用的方法 首先看一下效果,初始时是一个相册,可以点击导航,切换图片,并切换下方显示内容: 点击house,可以动态的切换另一个图片 所使用的代码,如下: 我的...
分类:
Web程序 时间:
2015-03-12 22:22:14
阅读次数:
129
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square miles each year, due to erosion caused by the Mississipp...
分类:
其他好文 时间:
2015-03-11 14:49:28
阅读次数:
144
1243. Divorce of the Seven Dwarfs
Time limit: 1.0 second
Memory limit: 64 MB
After the Snow White with her bridegroom had left the house of the seven dwarfs, their peaceful and prosperous...
分类:
其他好文 时间:
2015-03-09 14:32:35
阅读次数:
145
DescriptionThere is an apple tree outside of kaka’s house. Every autumn, a lot of apples will grow in the tree. Kaka likes apple very much, so he has been carefully nurturing the big apple tree.The tre...
分类:
移动开发 时间:
2015-03-05 16:56:29
阅读次数:
162
题目链接:lightOJ 1047 Neighbor House
题意:有N做房子,每个房子涂3种颜色各有一个花费,相邻的房子颜色不能一样,给N个房子涂颜色,问完成这个任务的最小花费。
dp[i][j] 表示涂到第i个房子涂j颜色的最小花费。
状态转移方程:dp[i][k]=min(dp[i][k],dp[i-1][j]+p[i].c[k]);
AC代码:
#...
分类:
其他好文 时间:
2015-03-03 10:01:16
阅读次数:
151
DescriptionEmma and Eric are moving to their new house they bought after returning from their honeymoon. Fortunately, they have a few friends helping ...
分类:
其他好文 时间:
2015-03-02 20:57:17
阅读次数:
183
题目描述
Happy Spring Festival everyone! Many relatives will visit your house, of course they have bear kids. Now you are playing chess with a bear kid.
It's really terrible. You have a 3*3 chessboard...
分类:
其他好文 时间:
2015-02-28 21:41:43
阅读次数:
232
1515: Play whit bear kid时间限制:1 Sec内存限制:128 MB提交:3解决:2题目描述Happy Spring Festival everyone! Many relatives will visit your house, of course they have bea...
分类:
其他好文 时间:
2015-02-28 00:14:46
阅读次数:
250
题意:题目描述太简单了,简直需要猜题目。看别人的题解也知道题目意思。大致意思是,手里五张牌,可以弃0~5张,然后从牌堆的5张中拿最上面的同等数量纸牌,使得value最大。value的评价真的是要猜。。。依次为:
straight-flush 同花顺four-of-a-kind 炸弹full-house 满堂红 三张同点牌加上一对 flush 同花straight...
分类:
其他好文 时间:
2015-02-26 20:23:25
阅读次数:
244