码迷,mamicode.com
首页 > 编程语言 > 详细

URAL 1297. Palindrome(输出最长回文子串--后缀数组)

时间:2015-03-19 22:09:51      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:

Input

The input consists of a single line, which contains a string of Latin alphabet letters (no other characters will appear in the string). String length will not exceed 1000 characters.

Output

The longest substring with mentioned property. If there are several such strings you should output the first of them.

Sample

input output
ThesampletextthatcouldbereadedthesameinbothordersArozaupalanalapuazorA
ArozaupalanalapuazorA
Problem Author: Eugene Krokhalev
Problem Source: IX Open Collegiate Programming Contest of the High School Pupils (13.03.2004)

URAL 1297. Palindrome(输出最长回文子串--后缀数组)

标签:

原文地址:http://blog.csdn.net/kalilili/article/details/44463567

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!