#P1030. Count Different Numbers O
Count Different Numbers O
Description
Given a series of n numbers, find the total number of different numbers.
For example: the numbers are {2, 2, 1, 3, 4, 4, 5}, and different numbers are {2, 1, 3, 4, 5}. The answer is 5.
Input
There are no more than 100 test cases. Each case contains two lines.
The first line is integer number 1 <= n <= 100.
The second line are the n integer numbers which are in range [1, 10^4].
Output
The total number of different numbers.
7
2 2 1 3 4 4 5
5