P16749 [GKS 2020 #A] Workout
Description
Tambourine has prepared a fitness program so that she can become more fit! The program is made of $N$ sessions. During the $i$-th session, Tambourine will exercise for $M_i$ minutes. The number of minutes she exercises in each session are *strictly increasing*.
The *difficulty* of her fitness program is equal to the maximum difference in the number of minutes between any two consecutive training sessions.
To make her program less difficult, Tambourine has decided to add up to $K$ additional training sessions to her fitness program. She can add these sessions anywhere in her fitness program, and exercise any positive integer number of minutes in each of them. After the additional training session are added, the number of minutes she exercises in each session must still be strictly increasing. What is the minimum difficulty possible?
Input Format
The first line of the input gives the number of test cases, $T$. $T$ test cases follow. Each test case begins with a line containing the two integers $N$ and $K$. The second line contains $N$ integers, the $i$-th of these is $M_i$, the number of minutes she will exercise in the $i$-th session.
Output Format
For each test case, output one line containing Case #x: y, where $x$ is the test case number (starting from 1) and $y$ is the minimum difficulty possible after up to $K$ additional training sessions are added.
Explanation/Hint
In Sample Case #1: Tambourine can add up to one session. The added sessions are marked in bold: 100 150 200 230. The difficulty is now 50.
### Limits
$1 \le T \le 100$.
For at most $10$ test cases, $2 \le N \le 10^5$.
For all other test cases, $2 \le N \le 300$.
$1 \le M_i \le 10^9$.
$M_i < M_{i+1}$ for all $i$.
**Test Set 1**
$K = 1$.
**Test Set 2**
$1 \le K \le 10^5$.