//学习了大佬的解法,自己也理解了一下,稍微理解了一点动态规划 //最重要的是设置状态,设置dp[i][j]为以str1[i - 1] 和 str2[j - 1]为终点的公共子串长度 #include <stdio.h> int main() { char *str1 = (char *)malloc(301); char *str2 = (char *)malloc(301); scanf("%s %s", str1, str2); int m = strlen(str1); int n = strlen(str...