![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
单调栈
cwb丶
这个作者很懒,什么都没留下…
展开
-
2018南昌邀请赛网络赛 单调栈 I
Alice has a magic array. She suggests that the value of a interval is equal to the sum of the values in the interval, multiplied by the smallest value in the interval.Now she is planning to find the...原创 2019-10-31 20:13:42 · 126 阅读 · 0 评论 -
Second My Problem First 单调栈
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 of Ti(1 <= i <= n) mod B.Input...原创 2019-08-03 12:34:58 · 103 阅读 · 0 评论