// ********原题 14-最长公共前缀 // 思路:竖着看相不相等咯 const strArr = readline().split(','); let min = strArr[0].length; let len = 0; for (let i = 1; i < strArr.length; i++) { min = Math.min(min, strArr[i].length); } function calLen() { for (let i = 0; i < min; i++) { for (let j = 1; j < strArr.l...