poj 2823 Sliding Window 单调队列
2021-05-07 06:28
标签:ase min mini include eterm oid utc stdio.h lap Description Your task is to determine the maximum and minimum values in the sliding window at each position. Input Output Sample Input Sample Output Source poj 2823 Sliding Window 单调队列 标签:ase min mini include eterm oid utc stdio.h lap 原文地址:http://www.cnblogs.com/lpl-bys/p/7647622.html
Time Limit: 12000MS
Memory Limit: 65536K
Total Submissions: 63635
Accepted: 18150
Case Time Limit: 5000MS
The array is [1 3 -1 -3 5 3 6 7], and k is 3.
Window position
Minimum value
Maximum value
[1 3 -1] -3 5 3 6 7
-1
3
1 [3 -1 -3] 5 3 6 7
-3
3
1 3 [-1 -3 5] 3 6 7
-3
5
1 3 -1 [-3 5 3] 6 7
-3
5
1 3 -1 -3 [5 3 6] 7
3
6
1 3 -1 -3 5 [3 6 7]
3
7
8 3
1 3 -1 -3 5 3 6 7
-1 -3 -3 -3 3 3
3 3 5 5 6 7
1 #include
文章标题:poj 2823 Sliding Window 单调队列
文章链接:http://soscw.com/index.php/essay/83564.html