char s[maxn];
int sa[maxn];
int t[maxn], t2[maxn], c[maxn];
int rank[maxn], height[maxn];
int n;
void build_sa(int m)
{
int i, *x = t, *y = t2;
for(i = 0; i < m; i++)
c[i] = 0;
for(i = 0; i < n; ...
分类:
其他好文 时间:
2014-07-22 23:04:34
阅读次数:
293
1 #include 2 3 int main(void) 4 { 5 int a,b,c; 6
int temp; 7 printf("please input a b c\n"); 8 scanf("%d %d
%d",&a,&b,&c); 9 10 if(a>b)11 {12 te...
分类:
其他好文 时间:
2014-07-22 23:00:52
阅读次数:
353
分享一个批处理脚本,判断是不是特殊字符。原文地址:http://www.jbxue.com/article/17770.html用于判断输入的一个字符是否为"&^>中的符号。注意,匹配字符串中的空格不可省略!批处理代码:@echo
offset Input=S set /p Input=Please...
分类:
其他好文 时间:
2014-07-22 23:00:34
阅读次数:
394
转自:http://blog.csdn.net/wnczwl369/article/details/7483290转自:http://hi.baidu.com/c2_sun/item/934a542518c6ecc5a5275aadstruts.xml文件配置:
1 2 5 6 7 ...
分类:
其他好文 时间:
2014-07-22 23:00:12
阅读次数:
549
ubuntu安装opencv(1)安装编译opencv的环境sudo apt-get -y
install build-essential cmake pkg-config(2)安装Image I/O库sudo apt-get -y install
libjpeg62-dev sudo apt-ge...
分类:
其他好文 时间:
2014-05-01 22:42:45
阅读次数:
451
需求架构准备工作主从服务器时间同步#
主从服务器同时配置crontab任务,与NTP服务器同步时间即可*/5 * * * * ntpdate 172.16.0.1
&>/dev/null部署配置主库配置vi /etc/my.cnf server-id = 1 # 在复制架构中,需保持全局唯一 ...
分类:
数据库 时间:
2014-05-01 22:27:40
阅读次数:
699
求矩形和圆是否相交或相切。
#include
#include
#define judge(x,y) x<y||fabs(x-y)<0.00000001
double dis(int x,int y,int a,int b)
{
return (x-a)*(x-a)+(y-b)*(y-b);
}
int main()
{
int T;
scanf(...
分类:
其他好文 时间:
2014-04-30 22:45:38
阅读次数:
365
主定理
主定理最早出现在《算法导论》中,提供了分治方法带来的递归表达式的渐近复杂度分析。
规模为n的问题通过分治,得到a个规模为n/b的问题,每次递归带来的额外计算为c(n^d)
T(n) <= aT(n/b)+c(n^d)
那么就可以得到问题的复杂度为:...
分类:
其他好文 时间:
2014-04-30 22:44:38
阅读次数:
435
??
xml publisher根据条件显示或隐藏列
if@column:condition?>
……
例子:
根据PROJECT_FLAG标签显示或隐藏项目号的列
IF 项目号 EI
IF PROJECT_NUMBER EI
IF:
EI:
注意:对应的PROJECT_FLAG需要同时在头和行上有...
分类:
其他好文 时间:
2014-04-30 22:43:40
阅读次数:
258
valid();
}else{
$wechatObj->responseMsg();
}
class wechatCallbackapiTest
{...
分类:
微信 时间:
2014-04-30 22:35:38
阅读次数:
720