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])              
本站公眾號
   歡迎關注本站公眾號,獲取更多信息