【模板】manacher算法


传送门

某篇好文章

#include <cstdio> #include <cstring> #define N 22200000 #define min(x, y) ((x) < (y) ? (x) : (y)) #define max(x, y) ((x) > (y) ? (x) : (y)) int p[N]; char s[N]; int pos = 1, maxright, ans, n; int main() ans = max(ans, p[i] 1); } printf("%d\n", ans); return 0; }

  



上一篇:[luoguP3068] [USACO13JAN]派对邀请函Party Invitations(stl大乱交)

下一篇:[luoguP2461] [SDOI2008]递归数列(DP + 矩阵优化)


模板 Manacher
Copyright © 2002-2019 k262电脑网 www.k262.cn 皖ICP备2020016292号
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!QQ:251442993 热门搜索 网站地图