pat 甲级 动态规划 A1040 Longest Symmetric String (25分)最长回文子串
1040 Longest Symmetric String (25分)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given Is PAT&TAP symmetric?, the longest symmetric sub-string is s PAT&TAP s, hence you must output 11.
In
原创
2020-08-24 09:12:12 ·
108 阅读 ·
0 评论