【CF526F】Pudding Monsters

题意:

给你一个排列pi,问你有对少个区间的值域段是连续的。

n≤3e5

题解:

bzoj3745

原文地址:https://www.cnblogs.com/yinwuxiao/p/9474652.html