给一个字符串,求最长回文字串有多长 #include<cstdio> #include<algorithm> #include<cstring> #define N 1000005 using namespace std; int n,m,T,p[N*2],ans; char s[2*N],t[N]; void manacher() { int id=0,pos=0,x=0; for (int i=1;i<+n;i++) { if (pos>i) x=min…
D - Palindrome Time Limit:15000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3974 Description Andy the smart computer science student was attending an algorithms class when the professor asked the students a…
题目链接:http://poj.org/problem?id=3974 Time Limit: 15000MS Memory Limit: 65536K Description Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Can you propose an efficient…
Palindrome Time Limit: 15000MS Memory Limit: 65536K Total Submissions: 12616 Accepted: 4769 Description Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Can you pr…