单调栈
我好想逃
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CodeForces - 280B Maximum Xor Secondary(单调栈)
Bike loves looking for the second maximum element in the sequence. The second maximum element in the sequence of distinct numbers x1, x2, ..., xk (k > 1) is such maximum element xj, that the follo...原创 2018-11-19 20:00:18 · 302 阅读 · 0 评论 -
CodeForces - 320D A - Psychos in a Line(栈)
There are n psychos standing in a line. Each psycho is assigned a unique integer from 1 to n. At each step every psycho who has an id greater than the psycho to his right (if exists) kills his right n...原创 2018-12-02 15:44:03 · 464 阅读 · 0 评论
分享