回文树在处理回文方面真的比manacher要好用得多。。。 #include<iostream> #include<cstdio> #include<cstring> #include<cstdlib> #include<algorithm> #define REP(i,a,b) for(int i ...
分类:
其他好文 时间:
2016-04-07 07:02:20
阅读次数:
191
回文树的裸题。 #include<bits/stdc++.h> #define REP(i,a,b) for(int i=a;i<=b;i++) #define MS0(a) memset(a,0,sizeof(a)) using namespace std; typedef long long l ...
正常情况下可以这么写: jQuery(node).find(xpath.replace("//", ""))[0];但是在IE8下得到的是undefined应该要这么写: var xmlDoc = jQuery.parseXML(node);jQuery(xmlDoc).find(xpath.rep ...
分类:
Web程序 时间:
2016-04-06 16:45:43
阅读次数:
193
求n次lca后树上差分。 每次移动时在起始点和终点各打一个start标记,在LCA和LCA的父节点处各上打一个end标记,然后深搜,start标记一直上传,遇到end标记就停止,最后再处理一下就行 % PoPoQQQ大爷 #include<bits/stdc++.h> #define rep(i,l ...
分类:
其他好文 时间:
2016-04-03 11:45:11
阅读次数:
251
<asp:TextBox ID="txtHKMonth" runat="server" CssClass="month" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.rep ...
分类:
其他好文 时间:
2016-03-31 18:25:09
阅读次数:
114
21、View the Exhibit and examine the privileges granted to the SL_REP user. GRANT ANY OBJECT PRIVILEGE 可以把任何用户下的表授权给其他用户 22、 ON COMMIT DELETE ROWS 事务临时 ...
分类:
其他好文 时间:
2016-03-31 12:34:21
阅读次数:
209
问题:cpu负载过高,达到36。现象:通过mysqladmin-uroot-pprocesslist查看到大量如下信息:Sendingdataselect*from`rep_corp_vehicle_online_count`wherecorp_id=48andvehicle_id=10017543根据以上的可能是表rep_corp_vehicle_online_count的问题做出如下测试:查看表结构:my..
分类:
数据库 时间:
2016-03-31 00:24:04
阅读次数:
208
LinuxShell常用技巧(十二)Shell编程
二十三.BashShell编程:1.读取用户变量:read命令是用于从终端或者文件中读取输入的内建命令,read命令读取整行输入,每行末尾的换行符不被读入。在read命令后面,如果没有指定变量名,读取的数据将被自动赋值给特定的变量REP..
分类:
系统相关 时间:
2016-03-30 18:07:39
阅读次数:
388
String 库中的一些函数是非常简单的:string.len(s)返回字符串 s 的长度;string.rep(s, n)返回重复 n 次字符串 s 的串;你使用 string.rep("a", 2^20)可以创建一个 1M bytes 的字符 串(比如,为了测试需要);string.lower(s)将 s 中的大写字母转换成小写(string.upper 将小写转换成大写)。
19.1 模式匹配函数
在string库中功能最强大的函数是:string.find(字符串查找),string.g...
分类:
其他好文 时间:
2016-03-26 07:11:26
阅读次数:
133
1)定义使用webtatic源 rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm 2)安装或更新php、mysql yum install mysql55w mysql55w-server 或 yum replace mysql --rep
分类:
数据库 时间:
2016-03-09 22:24:47
阅读次数:
235