![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
单调栈
我好想逃
这个作者很懒,什么都没留下…
展开
-
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 · 213 阅读 · 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 · 372 阅读 · 0 评论