摘要: Problem DescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given strings.InputThe first line of the input file contains a single integer t (1 <= t <= 10), 阅读全文
posted @ 2012-12-13 23:01 forevermemory 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionYou are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input.Note well: The substring and its reversal may overlap partially or c 阅读全文
posted @ 2012-12-13 22:43 forevermemory 阅读(166) 评论(0) 推荐(0) 编辑