摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4339题意:给出两个字符串S1,S2,进行两种操作:(1)1 a i c 在字符串Sa中,将Sa[i]变成c(2)2 i,求从i下标开始的最长匹配长度。View Code 1 #include <stdio.h> 2 #include <string.h> 3 #define lson l,m,rt<<1 4 #define rson m+1,r,rt<<1|1 5 #define maxn 1000001 6 struct node 7 { 8 in 阅读全文