#Y3029. 字符串最长公共子串

字符串最长公共子串

题目描述

nn个字符串的最长公共子串,n<20n<20,字符串长度不超过255255

输入格式

第一行一个整数nn,接下来n行,每行一个字符串。

输出格式

输出最长公共子串,如果没有公共子串则输出“no”。

样例

输入样例

3
what is local bus?
Name some local bus.
local bus is high speed I/O bus close to the processor.

输出样例

local bus