The first line of the input contains a single integer T(1≤T≤10
), the number of test cases.
For each case, the first line of the input contains two integers nand m
(1≤n≤50
, n≤m≤10
8
), denoting the number of workers and the number of pieces of equipment.
1
3 5
2 3 10
2 -3 10
1 -1 4
4 15 37