We define the beauty of a list of $$$n$$$ numbers $$$a_1, a_2, \ldots, a_n$$$ as the sum of the terms with odd indices minus the sum of the terms with even indices, that is, $$$a_1 - a_2 + a_3 - \ldots + (-1)^{n+1}a_n = \sum_{i=1}^n (-1)^{i+1}a_i$$$.
You are given a list of $$$n$$$ numbers and an integer $$$k$$$, and you must determine the maximum beauty you can obtain after performing the following operation exactly $$$k$$$ times: you choose two different indices $$$1 \leq i \lt j \leq n$$$ and exchange the values of $$$a_i$$$ and $$$a_j$$$.
The input begins with a number $$$T$$$ — the number of test cases.
Each test case starts with a line with two integers $$$n$$$ and $$$k$$$: the length of the list and the number of exchanges to be performed.
Next, there is a line with $$$n$$$ integers $$$a_1, \ldots, a_n$$$.
For each test case, you must print a line with the maximum beauty that can be obtained by performing exactly $$$k$$$ exchanges.
45 11 4 2 3 72 11 22 21 29 01000000000 0 1000000000 0 1000000000 0 1000000000 0 1000000000
9 1 -1 5000000000
$$$1 \leq T \leq 2000$$$.
$$$2 \leq n \leq 2 \cdot 10^5$$$.
The sum of $$$n$$$ for all cases is at most $$$2 \cdot 10^5$$$.
$$$0 \leq k \leq 10^9$$$.
$$$0 \leq a_i \leq 10^9$$$ for all $$$i = 1, \ldots, n$$$.
| Name |
|---|


