码迷,mamicode.com
首页 > 2014年08月03日 > 全部分享
poj 3254 Corn Fields ,状态压缩DP
题目链接 题意: 一个矩阵里有很多格子,每个格子有两种状态,可以放牧和不可以放牧,可以放牧用1表示,否则用0表示,在这块牧场放牛,要求两个相邻的方格不能同时放牛,即牛与牛不能相邻。问有多少种放牛方案(一头牛都不放也是一种方案) state[i] 表示对于一行,保证不相邻的方案 状态:dp[i][ state[j] ]  在状态为state[j]时,到第i行符合条...
分类:其他好文   时间:2014-08-03 05:45:34    阅读次数:246
Struts2体系结构与基本流程
一、Struts2基本流程...
分类:其他好文   时间:2014-08-03 05:45:15    阅读次数:285
高度抽象的 MVC 忽略了下述细节描述带来了隐患
高度抽象的 MVC 忽略了下述细节描述带来了隐患...
分类:Web程序   时间:2014-08-03 05:44:14    阅读次数:257
mouseover和mouseout多次触发解决方法(兼容ie和firefox)(转)
在用到mouseover和mouseout事件来作为事件触发的条件,但是如果我们用做触发的元素内部有其他的元素的时候当鼠标移上的时候会反复的触发mouseover和mouseout事件,如导致菜单闪烁等问题。因为内部元素在鼠标移上的时候会向它的父对象派发事件,所以外面元素相当于也触发了mouseov...
分类:其他好文   时间:2014-08-03 05:24:17    阅读次数:250
Spiral Matrix leetcode java
题目:Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[[ ....
分类:编程语言   时间:2014-08-03 05:24:09    阅读次数:276
Pascal's Triangle II Leetcode java
题目:Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to ....
分类:编程语言   时间:2014-08-03 05:24:06    阅读次数:304
Spiral Matrix II leetcode java
题目: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the foll....
分类:编程语言   时间:2014-08-03 05:21:18    阅读次数:272
Pascal's Triangle leetcode java(杨辉三角)
题目:Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1...
分类:编程语言   时间:2014-08-03 05:16:25    阅读次数:303
〖Android〗dropbear一些操作命令备忘
相关命令行: 1 # 启动dropbear后台运行 2 /data/local/tmp/dropbear \ 3 -A -N android -I 0 -C passwd -U 1015 -G 1015 -p 2223 \ 4 -R /data/local/tmp/authorize...
分类:移动开发   时间:2014-08-03 04:40:14    阅读次数:668
Triangle leetcode java
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:编程语言   时间:2014-08-03 04:40:04    阅读次数:351
Python处理Excel文档(xlrd, xlwt, xlutils)
简介xlrd,xlwt和xlutils是用Python处理Excel文档(*.xls)的高效率工具。其中,xlrd只能读取xls,xlwt只能新建xls(不可以修改),xlutils能将xlrd.Book转为xlwt.Workbook,从而得以在现有xls的基础上修改数据,并创建一个新的xls,实现...
分类:编程语言   时间:2014-08-03 04:39:54    阅读次数:338
MAYA 多线程
'''Usage:def timerTest(): print 'Hello World!'#create and start a timertimer = Timer(30, timerTest, repeat=True)timer.start()#To stop the timertimer.s...
分类:编程语言   时间:2014-08-03 04:39:44    阅读次数:345
TreeListControl拖动模板设计
大家用的上的就直接用吧,就是一些小知识,不说废话了,用过了,帮忙支持一下就行,谢谢: --> private void dragDropManager_DragOver_1(object sender, DevExpress.Xpf.Grid.Dr...
分类:其他好文   时间:2014-08-03 04:34:10    阅读次数:674
sqlhelper经典
/// /// 数据库的通用访问类 /// 此类为抽象类,不允许实例化,在应用时直接调用 /// public abstract class SqlHelper { //获取数据库连接字符串,其属于静态变量且只读,项目中所有文档可以直接使用,但不能修改 public static readon...
分类:数据库   时间:2014-08-03 04:32:55    阅读次数:353
Go Web服务器和图片
Web 服务器包 http通过任何实现了http.Handler的值来响应 HTTP 请求:package httptype Handler interface { ServeHTTP(w ResponseWriter, r *Request)}在这个例子中,类型Hello实现了 `http....
分类:Web程序   时间:2014-08-03 04:30:08    阅读次数:380
SearchControl控件使用研究
研究了一下DevExpress的SearchControl,供大家参考使用: --> this.columnProvider.CustomColumns = new ObservableCollection() {"Name"};
分类:其他好文   时间:2014-08-03 04:30:05    阅读次数:2037
Nginx入门级简介,包括安装,基本使用,负载均衡,动静分离,反向代理,缓存应用等功能。
本文为Nginx入门级简介,包括安装,基本使用,负载均衡,动静分离,反向代理,缓存应用等功能。 依赖项准备 可能用到的依赖库,以下提供官方网站链接可自行下载: pcre http://www.pcre.org/ zlib http://zlib.ne...
分类:其他好文   时间:2014-08-03 01:49:14    阅读次数:400
1092条   上一页 1 ... 60 61 62 63 64 65 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!