New Document
div{
margin: 30px 0px 80px;
width: 200px;
height: 50px;
font-size: 18px;
font-weight: bold;
background: none repeat scroll 0% 0% #DEE4EE;
color: #305999;
text-align: center;
line-heigh...
分类:
Web程序 时间:
2015-01-08 21:39:44
阅读次数:
159
无标题文档
body{width:900px; height:600px;margin: 0px auto; }
body,ul,table,li,pre,dd,dt,tr,th,td,{padding:0px;border:0px; margin:0px;font-size: 14px;}
.container{text-align:center...
分类:
Web程序 时间:
2015-01-08 20:14:05
阅读次数:
264
無標題文件
window.onload=function(){
document.getElementById("left").style.height = document.getElementById("right").offsetHeight+"px";
}
我是導航,我很短
我是內容,我很長
我是內容,我很長
...
分类:
其他好文 时间:
2015-01-08 18:02:11
阅读次数:
183
void Yv12ToImg(uchar *pin, IplImage* img)
{
uchar y, cb, cr;
int ySize = img->width * img->height;
int uSize = ySize / 4;
uchar *pY = pin;
uchar *pU = pY...
分类:
其他好文 时间:
2015-01-08 18:01:21
阅读次数:
207
题目大意:给出一片树林,树排成一排,每一棵树都有一个高度。从地一棵树出发,每次可以跳到i+k棵之前,跳到小于自己高度的树上不需要花费体力,反之需要花费一点体力,问到最后一棵树最少需要多少体力。
思路:简单DP方程:f[i] = min{f[j] + (height[i] >= height[j])}
然后发现数据范围只有O(n)可以过。
维护单调队列,队列中按照f单调递减,队尾按照时...
分类:
其他好文 时间:
2015-01-08 15:24:58
阅读次数:
128
设置页面加载时滚动条自动滚到底的方法:jQuery:$(function(){ var h = $(document).height()-$(window).height(); $(document).scrollTop(h);});JavaScript:window.onload = functi...
分类:
其他好文 时间:
2015-01-08 13:16:22
阅读次数:
124
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:
其他好文 时间:
2015-01-08 12:57:43
阅读次数:
171
The problem:Given an array where elements are sorted in ascending order, convert it to a height balanced BST.My analysis:The recursion is the best way...
分类:
其他好文 时间:
2015-01-08 00:49:30
阅读次数:
265
<html> <head> <meta charset="utf-8" content="text/htnl"> <title>button</title> <style type="text/css"> a.button{ position:relative; width: 80px; height: 50px; background-color: red; display: block;...
分类:
Web程序 时间:
2015-01-07 19:20:13
阅读次数:
213
//使用Bitmap加Matrix来缩放
public static Drawable resizeImage(Bitmap bitmap, int w, int h)
{
Bitmap BitmapOrg = bitmap;
int width = BitmapOrg.getWidth();
int height = ...
分类:
移动开发 时间:
2015-01-07 18:51:51
阅读次数:
143