HD 1159 Common Subsequence (最长公共子序列)
生活随笔
收集整理的這篇文章主要介紹了
HD 1159 Common Subsequence (最长公共子序列)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=1159
The program input is from a text file. Each data set in the file contains two strings representing the given sequences. The sequences are separated by any number of white spaces. The input data are correct. For each set of data the program prints on the standard output the length of the maximum-length common subsequence from the beginning of a separate line.?
Sample Input abcfbc abfcab programming contest abcd mnp
Sample Output 4 2 0
程序原理如下狀態方程:
資料鏈接:http://www.cnblogs.com/huangxincheng/archive/2012/11/11/2764625.html
總結
以上是生活随笔為你收集整理的HD 1159 Common Subsequence (最长公共子序列)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HD 2602 Bone Collect
- 下一篇: 开发指南专题九:JEECG微云快速开发平