CF601B Lipshitz Sequence
Description
A function  is called Lipschitz continuous if there is a real constant $ K $ such that the inequality $ |f(x)-f(y)|=2 $ ,  over all $ 1
Input Format
N/A
Output Format
N/A
Explanation/Hint
In the first query of the first sample, the Lipschitz constants of subarrays of  with length at least $ 2 $ are:
- 
- 
- 
The answer to the query is their sum.