LCS-LIS-MIS-MSIS

LCS:(最长公共子序列)code char stra[maxn],strb[maxn]; int lena,lenb,dp[maxn][maxn]; int LCS() {     for(int i=1;i<=lena;i++)         for(int j=1;j<=lenb;j++)             if(stra[i-1]==strb[j-1])              
本站公众号
   欢迎关注本站公众号,获取更多信息