5-7 最长对称子串 (25分) 对给定的字符串,本题要求你输出最长对称子串的长度。例如,给定Is PAT&TAP symmetric?,最长对称子串为s PAT&TAP s,于是你应该输出11。
//for循环
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
void zhongjian(int t);
void bianbian(int t);
char str[1001];
int n,max=0;
int main(){
i...
原创
2017-06-12 17:42:41 ·
9525 阅读 ·
5 评论