if ((result[i+j-1]=s1[i-1])and(dp[i-1,j]))or((result[i+j-1]=s2[j-1])and(dp[i,j-1])) thendp[i,j]:=trueelsedp[i,j]:=false;
看起来好难
哈