摘要:
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
阅读(184)
评论(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
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号