SCU practice contest 3 for grade 2010 new ACMers

C: Longest Ordered Subsequence (II)