首页 > 编程语言 > 详细

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

时间:2015-03-19 22:07:22      阅读:439      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!