题目链接:HDU 1992 Tiling a Grid With Dominoes
题意:一个4*N的矩形,用1*2的小矩形铺满的方法数是多少。
思路:4*N。只有4行想到状压,dp[i][j]表示前i行状态j的方法数,影响当前行的只有上一行!0成对出现表示横着放,1表示竖着放,所以第一行的状态0.3.9.12.15五种,并且只要上一行是0状态。当前行的状态就为0.3.9.12.15五种可能。...
分类:
其他好文 时间:
2015-01-30 09:16:04
阅读次数:
134
前端代码:
Ext.onReady(function(){
Ext.define('Person', {
extend: 'Ext.data.Model',
fields: [{name: 'id',
type: 'int',
useNull: true
}, 'email', 'first', 'last'],
va...
分类:
Web程序 时间:
2015-01-30 09:12:49
阅读次数:
158
--renderers渲染器
可以格式化该列显示的数据格式或者按照你自定义的脚本显示最终数据样子
先看下renderer: function()里的参数
renderer:function(value, cellmeta, record, rowIndex, columnIndex, store){
}
1.value是当前单元格的值
2.cellmeta里保存...
分类:
Web程序 时间:
2015-01-30 09:11:26
阅读次数:
336
环境交待:
Linux 6.3
Oracle Rac 11.2.0.4
[root@web1 grid]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set...
分类:
数据库 时间:
2015-01-29 22:37:01
阅读次数:
1805
今天栽了大跟头,,,,EXTjs右键可以获取到选中的那一列的索引值,只需在回调函数中取到那一列的数据就可以ok,不用再费尽心思的费用执行click的事件grid.on("rowcontextmenu",function(grid,rowIndex,e){ e.preventDefault();我想在...
分类:
其他好文 时间:
2015-01-29 22:25:16
阅读次数:
274
题目:
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to r...
分类:
其他好文 时间:
2015-01-29 19:42:21
阅读次数:
206
uva 11520 Fill the Square
In this problem, you have to draw a square using uppercase English Alphabets.
To be more precise, you will be given a square grid with some empty blocks and other...
分类:
其他好文 时间:
2015-01-29 17:49:36
阅读次数:
152
Ext序号默认是不会递增的写法如下new Ext.grid.RowNumberer({header:"序号",width:35})如需递增写法如下{header:"序号",width:35, renderer:function(value,metadata,record,rowIndex...
分类:
其他好文 时间:
2015-01-29 17:19:02
阅读次数:
290
题意,4*w的矩形放满1*2的矩形可以有多少种放法
从左往右状压dp。状态中的1表示横着放,且要占用该行下一列一格。0表示这个状态正好放满这列。...
分类:
其他好文 时间:
2015-01-29 09:32:05
阅读次数:
248
问题现象:集群好像不漂移IP了,全部会话连接数量只集中在某个节点上,这个节点断掉也不会自动连接到另外一个节点上;问题排查:在节点RAC1上执行集群状态检查命令(注意看红色字体部分):grid@rac01:[/home/grid]crsctlstatres-t-------------------------------------------..
分类:
数据库 时间:
2015-01-28 19:54:07
阅读次数:
273