Many lines#4160

Many lines

2 sekunt
256 megabaýt
Kyn

Given rows of lowercase Latin letters, your task is to identify the longest common substring among them.

Giriş

The first line contains the integer (1 \le K \le 10). The following lines each contain one row of lowercase Latin letters, with each row having a length between and .

Çykyş

Output the longest common substring shared by all the rows.

Mysallar

1-nji mysal

Loading
Loading