#K68842. Unique Email Exchanges
Unique Email Exchanges
Unique Email Exchanges
You are given a number of employees and your task is to determine the total number of unique pairs of employees that can exchange emails. For a given number of employees \( N \), any two distinct employees can form a pair. The number of unique pairs is given by the formula: \( \frac{N(N-1)}{2} \).
You will be given multiple test cases. For each test case, compute the number of unique pairs and print the result on a new line.
inputFormat
The first line of the input contains a single integer \( T \) representing the number of test cases. Each of the next \( T \) lines contains one integer \( N \), the number of employees in that test case.
outputFormat
For each test case, output a single line containing the number of unique pairs that can be formed among \( N \) employees. Use the formula \( \frac{N(N-1)}{2} \) for the calculation.
## sample1
1
0
</p>