题目连接:10635 - Prince and Princess 题目大意:给出n, m, k,求两个长度分别为m + 1 和 k + 1且由1~n * n组成的序列的最长公共子序列长的。 解题思路:按一般的o(n^2)的算法超时了,所以上网查了下LCS装换成LIS的算法o(nlogn)。算法仅仅是将其中的一个序列重新标号1~m,然后按最长公共子序列的方法去做。 #in
The Frog Prince [青蛙王子] and Hello Kitty 1. Hello Kitty.gif2. The Frog Prince (青蛙王子) .gifReferences 1. Hello Kitty.gif Hello Kitty, also known by her real name Kitty White, is a fictional cha
The Little Prince-12/06 “That doesn't matter. Draw me a sheep.” When the prince ask the planet to draw a sheep for him, the planet says that he has never drawn a sheep and he told the little cha