SP23429 BYU15W_2 - Grid Arithmetic

Description

N/A

Input Format

The first line contains a single positive integer **T**, representing the number of test cases. **T** test cases follow. Each test case begins with a line containing a single integer **N**, representing the size of the matrix. The next **N** lines each contain **N** space-separated integers, representing the matrix.

Output Format

For each test case, output a single line containing the absolute value of the total found that is closest to 0.