Distinct Numbers
当前没有测试数据。
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Description
You are given a list of n integers, and your task is to calculate the number of distinct values in the list.
Input Format
The first input line has an integer n: the number of values.
The second line has n integers x1,x2,…,xn.
Output Format
Print one integers: the number of distinct values.5
2 3 2 2 3
2