uva 11003
2D DP - longest subsequence with additional constraint
The actual subsequence length is a dimension of the array
(knapsack-like) to model multiple ways of arriving there. We optimise
for the other parameter