CF1082E Increasing Frequency
题目描述
给你一个长度为 $n$ 的数列 $a$ ,你可以任意选择一个区间 $[l,r]$, 并给区间每个数加上一个整数 $k$, 求这样一次操作后数列中最多有多少个数等于 $c$.
输入格式
无
输出格式
无
说明/提示
In the first example we can choose any segment and $ k = 0 $ . The array will stay same.
In the second example we can choose segment $ [1, 3] $ and $ k = -4 $ . The array will become $ [2, -2, 2] $ .