Problem Description
There is a sequence of integers. Your task is to find the longest subsequence that satisfies the following condition: the difference between the maximum element and the minimum ...
分类:
其他好文 时间:
2015-05-16 11:57:35
阅读次数:
127
题意:求满足最大元素与最小元素之差在一定范围的连续区间的最大长度。单调队列经典应用。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include ...
分类:
其他好文 时间:
2015-04-12 06:44:51
阅读次数:
140