#include <bits/stdc++.h> using namespace std; const int LEN = 1001; char s1[LEN], s2[LEN]; int dp[LEN][LEN]; int main() { while (cin >> s1 + 1 >> s2 + 1) { //为了方便思考,采用从序号1读入 int n = strlen(s1 + 1); int m = strlen(s2 + 1); for (int i = 0; i <...