没有读懂题目

P1440 求m区间内的最小值

hopeless_hope @ 2023-01-21 11:41:59

求一个样例解释 我手推和单调队列跑出来的都是

0 7 1 1 3 2


by Zjc20120331 @ 2023-01-21 11:56:36

7前:无数,min = 0
8前:一个数,min = 7
1前:两个数,min = min(7,8) = 7
4前:两个数,min = min(8,1) = 1
3前:两个数,min = min(1,4) = 1
2前:两个数,min = min(4,3) = 3

by 离散小波变换° @ 2023-01-21 12:00:02

@whoam


by hopeless_hope @ 2023-01-21 12:14:52

@离散小波变换° @Zjc20120331

谢谢二位巨佬 已经通过了


by hopeless_hope @ 2023-01-21 12:16:30

@离散小波变换° 您可以添加样例解释qwq

我一开始误解成了前m个数包括ai


|