Blues
CodeForces 960G Bandit Blues
[洛谷传送门](https://www.luogu.com.cn/problem/CF960G "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/960/G "CF 传送门") 发现设排列最大值位置为 $i$,那么 $[1, i] ......
CF960G Bandit Blues
半个月前做的题,这段时间一直在颓所以没写题解,今天突然想起来才准备补上。 考虑枚举最大值 $n$ 的位置 $i$,那么排列就被分成 $2$ 个段 $[1,i-1]$ 和 $[i+1,n]$,而且 $\forall k\in [i+1,n]$,$k$ 不可能是前缀最大值;$\forall k\in [ ......