Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Antimonotonicity
Description I have a sequence
Input The first line of input will contain a single integer Each test case is contained on a single line. A line describing a test case is formatted as follows:
where Output For each test case, output a single integer followed by a newline --- the length of the longest subsequence Mary of Fred with the desired properties. Sample Input 4 5 1 2 3 4 5 5 5 4 3 2 1 5 5 1 4 2 3 5 2 4 1 3 5 Sample Output 1 2 5 3 Source Waterloo Local Contest, 2007.7.14 |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator