Problem G
Central String
You have a collection of strings of the same length
You wonder if your strings are very close to each other.
That is, for a given distance
Input
The first line of input contains three integers
You are further guaranteed that
Output
Output consists of a single line. If there is a string
Sample Input 1 | Sample Output 1 |
---|---|
2 4 1 abba bbca |
abca |
Sample Input 2 | Sample Output 2 |
---|---|
3 4 3 abcd efgh ijkl |
abgl |
Sample Input 3 | Sample Output 3 |
---|---|
3 4 2 abcd efgh ijkl |
0 |