#K83962. Unique Scores

    ID: 36314 Type: Default 1000ms 256MiB

Unique Scores

Unique Scores

In this problem, you are given T test cases. Each test case begins with an integer N followed by N integers representing scores. Your task is to compute the number of unique scores in each test case. Formally, for a test case with scores given by the array S, you need to calculate $$|{s_1, s_2, \ldots, s_N}|$$, where the vertical bars denote the cardinality of the set.

inputFormat

The input starts with a single integer T — the number of test cases. For each test case, the first line contains an integer N (the number of scores), and the second line contains N space-separated integers representing the scores.

outputFormat

For each test case, output a single line containing a single integer: the number of unique scores in that test case.## sample

2
5
1 2 2 3 4
4
4 4 4 4
4

1

</p>