Alice and Bob like eating cake very much. One day, Alice and Bob went to a bakery and bought many cakes.

Now we know that they have bought `n` cakes in the bakery. Both of them like delicious cakes,
but they evaluate the cakes as different values. So they decided to divide those cakes by following method.

Alice and Bob do `n` / 2 steps, at each step, Alice choose 2 cakes, and Bob takes the cake that he evaluates it greater, and Alice take the rest cake.

Now Alice want to know the maximum sum of the value that she can get.

The first line is an integer `T` which is the number of test cases.

For each test case, the first line is an integer `n` (1<=`n`<=800). Note that `n` is always an even integer.

In following `n` lines, each line contains two integers `a[i]` and `b[i]`, where `a[i]` is the value of `i ^{th}` cake that Alice evaluates, and

Note that `a[1]`, `a[2]`..., `a[n]` are `n` distinct integers and `b[1]`, `b[2]`..., `b[n]` are `n` distinct integers.

提交代码