文件名称:1004
介绍说明--下载内容均来自于网络,请自行研究使用
BOJ1004:现在有一个数列,需要你求得该数列满足下述要求的最长子数列。子数列要求:这个子数列可以被分成前后两个部分,且两部分共同拥有一个数列项(即前一部分的最后一个数列项和后一部分的第一个数列项是同一个数列项);子数列的前一部分各项要严格递增,后一部分各项要严格递减。例如,数列 1 4 6 5 2 1 可以分成 1 4 6 和 6 5 2 1 这两部分。他们都含有数列项 6 ,且前者各项严格递增,后者各项严格递减。-There is now a series, you need to obtain the series meet the following requirements of the longest sub-series. Sub-series Requirements: This sub-series may be divided into before and after the two parts, and the two share a series of items (ie the first part of the last series of items and the last part of the first number listed item is same number of column item) sub-series The first part should be strictly increasing, the last part of the strictly decreasing. For example, series 146 521 can be divided into 146 and 6521 these two. They contain a series of item 6, and the former is the strictly increasing, which is the strictly decreasing.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1004.cpp