public String LCS (String s1, String s2) { // 设置状态变量dp[i][j]:表示下标为[0,i-1]的s1和下标为[0,j-1]的s2的最长公共子序列的大小 int[][] dp=new int[s1.length()+1][s2.length()+1]; for (int i=1;i<s1.length()+1;i++){ for (int j=1;j<s2.length()+1;j++){ if (s1.charAt(i-1)==...