第一行是一个整数T,代表有T组数据
Each sequence is described with M - its length (1 <= M <= 500) and M integer numbers Ai (-2^31 <= Ai < 2^31) - the sequence itself.
output print L - the length of the greatest common increasing subsequence of both sequences.
注意每两组数据间要留一个空行,最后一组数据后不能有空行
1 5 1 4 2 5 -12 4 -12 1 2 4
2