CF204E Little Elephant and Strings
Description
The Little Elephant loves strings very much.
He has an array $ a $ from $ n $ strings, consisting of lowercase English letters. Let's number the elements of the array from 1 to $ n $ , then let's denote the element number $ i $ as $ a_{i} $ . For each string $ a_{i} $ $ (1
Input Format
N/A
Output Format
N/A
Explanation/Hint
Let's assume that you are given string $ a=a_{1}a_{2}...\ a_{|a|} $ , then let's denote the string's length as $ |a| $ and the string's $ i $ -th character as $ a_{i} $ .
A substring $ a[l...\ r] $ $ (1