hdu1423. Very good DP problem. longest common increasing subsequence
meger from master