题目大意:给定一个字符串,多次插入一个字符和询问某两个后缀的LCP
Splay+Hash。同1014
这逗比的询问。。。。。。
#include
#include
#include
#include
#define M 50500
#define BASE 151
using namespace std;
typedef unsigned long long ll;
struct a...
分类:
其他好文 时间:
2015-01-22 11:08:55
阅读次数:
190
这里用一个实例来演示PostgreSQL存储过程如何返回数据集。1 首先准备数据表//member_categorycreate table member_category(id serial, name text, discount_rate real, base_integral integer...
分类:
数据库 时间:
2015-01-22 11:01:20
阅读次数:
183
这些问题可能导致数据值的改变。一般而言,上述问题可能在你使用非二进制串数据类型(如char,varchar,text等数据类型)的情况下发生。AES_ENCRYPT()和AES_DECRYPT()AES_ENCRYPT()和AES_DECRYPT()可以加密/解密使用官方AES算法的数据。该算法使用...
分类:
数据库 时间:
2015-01-22 10:49:41
阅读次数:
240
# Markdown:让书写更美好
![text](http://wenchao-img.qiniudn.com/a53403c34c199fdd759571c2997ed910.png)
## Markdown简介
> Markdown 是一种轻量级标记语言,创始人为约翰·格鲁伯(John Gruber)。它允许人们“使用易读易写的纯文本格式编写文档,然后转换成有效...
分类:
其他好文 时间:
2015-01-22 09:33:57
阅读次数:
1309
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
分类:
其他好文 时间:
2015-01-21 22:05:31
阅读次数:
173
DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an...
分类:
其他好文 时间:
2015-01-21 21:59:44
阅读次数:
192
C#使用正则表达式去掉字符串中的数字//去掉字符串中的数字publicstaticstringRemoveNumber(stringkey){returnSystem.Text.RegularExpressions.Regex.Replace(key,@"\d","");}//去掉字符串中的非数字publicstaticstringRemoveNotNumber(stringkey){returnSystem.Text.RegularExp..
ListData.cs类usingSystem;usingSystem.Collections.Generic;usingSystem.Web;usingSystem.Text;publicclassListData{privateintpageSize;publicintPageSize{get{returnpageSize;}set{pageSize=value;}}privateintrecords;publicintRecords{get{returnrecords;}set{records=val..
分类:
其他好文 时间:
2015-01-21 20:16:10
阅读次数:
167
一、概述。
SpringMVC中界面请求Contorller1,Contorller1需要重定向到Contorller2中显示其他页面或者做一些业务逻辑,Spring中提供了这个功能利用“redirect:/”来进行重定向。
二、代码演示。
1、界面
Login.jsp
<%@ page language="java" contentType="text/h...
分类:
编程语言 时间:
2015-01-21 20:09:54
阅读次数:
223
开发使用的是SpringMVC+Velocity的架构,要使用Velocity的tools,在整合时代码如下:
class="org.springframework.web.servlet.view.velocity.VelocityViewResolver">
text/html;charset=UTF-8
dateTool
...
分类:
其他好文 时间:
2015-01-21 20:09:29
阅读次数:
170