B--Faultfinding
时间: 1ms 内存:128M
描述:
Do you remember the game in which we find difference among several similar pictures? Now we change it into digital version. There are N digits, same or different. Please find how many different digits there are among them and output the number.
输入:
Each group of the first line is N (1<=N<=10000). The second line consists N integers.
输出:
The number of different digits.
示例输入:
2
1 1
3
1 2 3
示例输出:
1
3
提示:
参考答案:
文章评论