#Lutece2176. 序列
序列
Migrated from Lutece 2176 序列
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
oy十分喜欢一种序列,为此他特意命名这种序列为oy序列 oy序列的定义如下:oy序列是一个长度为的序列,其中前个数字严格递增,后个数字严格递减 例如 就是一个长度为9的oy序列 现在你有一个长度为的序列,你需要在a的子序列中找出最长的oy序列.
Input
第一行一个数字,代表序列的长度 第二行依次给出
Output
oy只关心oy序列的长度,所以你只需要输出最长的oy序列的长度
Samples
20
15 5 8 18 4 18 14 2 14 9 10 16 14 7 1 18 18 4 10 3
9
Constraints
Resources
2019 UESTC ACM Training for Dynamic Programming