import java.util.*; public class 公共子串计算 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); while (sc.hasNext()){ String str1=sc.nextLine(); String str2=sc.nextLine(); char[] c1= str1.toCharArray(); char[]...