单调队列
永夜莫明
菜是原罪
展开
-
Second My Problem First (单调队列入门)
https://cn.vjudge.net/problem/HDU-3706 Give you three integers n, A and B. Then we define Si= Aimod B and Ti= Min{ Sk| i-A <= k <= i, k >= 1} Your task is to calculate the product ...原创 2019-08-22 16:30:07 · 380 阅读 · 0 评论 -
Subsequence(单调队列)
https://cn.vjudge.net/problem/HDU-3530 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...原创 2019-08-22 17:31:45 · 512 阅读 · 0 评论