Description: Description is given a lot of strings, asked to identify all twenty-two identical strings. Input Description 1st line: Given the number of strings N (N < 10 ^ 7) Article 2 ~ (N+ 1) line: each line a string length of each string does not exceed 10 ^ 6 character, for convenience, the string contains only a ~ z of 26 lowercase letters. Each string sequentially 0 to N- 1 corresponds to an original number will not be reflected in the input, but will be used in the output. Output Description If the same string exists between two successively in each line of output the same character string corresponding to the original number. Specifically: In the same line, the original number output should be not less than 2, the corresponding string should be the same, and to small to large order in their original number, the original number as the interval between spaces in a different line of Room number corresponding to different output string, and also in ascending order of output of the first nu
To Search:
File list (Check if you may need any files):
p17.c