原题:
1) ZOJ: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2136
2) POJ: http://poj.org/problem?id=2533
问题描述:
A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of
the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1, ai2, ...,
aiK), where 1 <= i1 < i2 < ... < iK <= N. For example, the sequence
(1, 7, 3, 5, 9, 4, 8) has ordered subsequences, e.g., (1, 7), (3, 4, 8) and
many others. All l......
阅读全文