


N = 5
A = [ 30, 20, 30,40, 100 ]
Explanation :
The valid pairs are :
( 30, 30 ) as the sum is 60.
( 20, 40 ) as the sum is 60.
( 20, 100 ) as the sum is 120 which is divisible by 60.
Thus we output 3.
The first line contains an integer 'T' which denotes the number of test cases to be run. Then the test cases follow.
The first line of each test case contains an integer ‘N’ denoting the number of piles of stones.
The next line contains ‘N’ integers representing the elements of array ‘A’. ‘A[i]’ denotes the time in seconds required by the ‘ith’ player to finish the game.
For each test case, output an integer representing the total valid pairs.
Print the output of each test case in a new line.
You don’t need to print anything. It has already been taken care of. Just implement the given function.
1 <= T <= 10
1 <= N <= 10^5
1 <= A[i] <= 10^9
Time Limit : 1 sec
Algorithm :
Algorithm :