Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-11-22 14:45:18
阅读次数:
141
还是以自定义的TestButton为例。我们可以通过重写onTouchEvent方法来处理诸如down move up的消息:?123456789101112131415161718public class TestButton extends Button {public TestButton(C...
分类:
移动开发 时间:
2014-11-22 11:50:16
阅读次数:
195
Big Event in HDU
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 24738 Accepted Submission(s): 8712
Problem Description
Nowaday...
分类:
其他好文 时间:
2014-11-22 09:23:00
阅读次数:
239
There are a fixed number of registers in the CPU Registers hold data Data move from Memory to Registers Results move from Registers back to Memory The...
分类:
其他好文 时间:
2014-11-21 23:08:48
阅读次数:
245
题意:
n(10^5)个数字的序列a 求每个位置i 它是不出现在任何LIS中 还是 出现在一些LIS中 还是 出现在所有LIS中
思路:
比赛时候唯一没做出的题… 赛后还是不会做… - -b 看了别人的代码觉得好精妙!!
首先以O(nlogn)复杂度求出LIS
然后我们倒序扫描序列a 对于位置i 如果lis[i]=LIS或者a[i]<big[lis[i]+1] (big[x]表示lis=x的a的最大值 这里的意思是 如果a[i]是某个LIS的最后一个 或者 能与某个LI...
分类:
其他好文 时间:
2014-11-21 21:55:58
阅读次数:
211
环境:192.168.128.111(ha1.haproxy.org)->CentOS6.364bitsiege2.78
192.168.128.10(n1.web.org)->CentOS6.564bitnginx1.6.2在192.168.128.111上使用siege对192.168.128.10的nginx做压力测试[root@ha1bin]#siege-c6500-r1"
Transactions:5827hits
Availability:89.65%..
分类:
其他好文 时间:
2014-11-21 19:01:28
阅读次数:
260
md: mdadm: 将任何块设备做成RAID模式化的命令:1.创建模式-C 专用选项:-l: 级别-n #: 设备个数-a {yes|no}: 是否自动为其创建设备文件-c: CHUNK大小, 2^n,默认为64KB,最好为块的倍数 ,为了提高raid 0/5 的性能 mke2fs -E str....
分类:
其他好文 时间:
2014-11-21 18:28:46
阅读次数:
304
链接:点击打开链接
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til...
分类:
其他好文 时间:
2014-11-21 16:19:59
阅读次数:
150
WAVE文件作为多媒体中使用的声波文件格式之一,它是以RIFF格式为标准的。RIFF是英文Resource Interchange File Format的缩写,每个WAVE文件的头四个字节便是“RIFF”。WAVE文件是由若干个Chunk组成的。按照在文件中的出现位置包括:RIFF WAVEChu...
分类:
其他好文 时间:
2014-11-21 15:50:25
阅读次数:
158
WAVE文件作为多媒体中使用的声波文件格式之一,它是以RIFF格式为标准的。RIFF是英文Resource Interchange File Format的缩写,每个WAVE文件的头四个字节便是“RIFF”。WAVE文件是由若干个Chunk组成的。按照在文件中的出现位置包括:RIFF WAVEChu...
分类:
其他好文 时间:
2014-11-21 15:35:58
阅读次数:
283