题目链接:hdu 4991 Ordered Subsequence
题目大意:给定一个序列,求有多少个子序列满足长度为m,并且递增。
解题思路:dp[i][j]表示说选了以第i个数为结尾,长度为j的递增子串方案数。将每个数离散化后用树状数组维护即可。
#include
#include
#include
#include
#define lowbit(x) ((x)&(-x...
分类:
其他好文 时间:
2014-09-10 12:37:10
阅读次数:
235
一、HTML表单 -- form标签 -- 与浏览者交互1、form 标签 -- 代表HTML表单form标签是成对出现的,以开始,以结束属性.common -- 公共属性action -- 浏览者输入的数据被传送到的地方,比如一个PHP页面(dreamdu.php) action语法: u...
分类:
Web程序 时间:
2014-09-10 12:27:50
阅读次数:
434
安装apache1.卸载系统自带的已安装httpd相关依赖包。[root$localhost~]#rpm–ehttpdhttpd-manualwebalizersubversionmod_pythonmod_sslphpphp-cliphp-ldapphp-common--nodeps2.解压并且编译安装httpd2.27[root$localhostcdrom]#tar–zxfhttpd-2.2.7.tar.gz[root$localhostcdro..
分类:
其他好文 时间:
2014-09-10 02:56:30
阅读次数:
228
The module pattern is a common JavaScript coding pattern. It’s generally well understood, but there are a number of advanced uses that have not gotten...
分类:
编程语言 时间:
2014-09-10 00:25:39
阅读次数:
370
题意:给定两个串,求出两个串的最长公共子序列,要求该公共子序列不包含virus串。用dp+kmp实现dp[i][j][k]表示以i结尾的字符串和以j结尾的字符串的公共子序列的长度(其中k表示该公共子序列的与virus的匹配程度)很显然,当k==strlen(virus)时,该公共子序列不是我们所求得...
分类:
其他好文 时间:
2014-09-09 20:03:59
阅读次数:
207
package com.pccw.business.fcm.common.hibernate;import java.lang.reflect.Field;import java.math.BigDecimal;import java.util.ArrayList;import java.util....
分类:
数据库 时间:
2014-09-09 18:04:09
阅读次数:
223
--删除双击代码全选1drop procedure if exists up_common_select --创建双击代码全选1234567891011121314CREATE PROCEDURE `up_common_select` ( in t_name varchar(50) ) ...
分类:
数据库 时间:
2014-09-09 15:28:28
阅读次数:
258
Longest Common Prefix
Total Accepted: 17298 Total
Submissions: 63704My Submissions
Write a function to find the longest common prefix string amongst an array of strings.
题意...
分类:
其他好文 时间:
2014-09-09 13:16:38
阅读次数:
135
原文地址:http://godick.maxcell.org/opencart-uploaded-file-with-chinese-file-name-doesnt-show-up.html 更改basename函数 admin\controller\common\filemanager.php ...
分类:
其他好文 时间:
2014-09-09 10:32:08
阅读次数:
295