Distinct Numbers
Submit solution
Points:
3 (partial)
Time limit:
1.0s
Python
5.0s
Memory limit:
256M
Author:
Problem type
Given a list of \(N\) integers, determine how many unique values appear in the list.
Input Specification
The first line will contain the integer \(N\) (\(1 \le N \le 2 \times 10^5\)). The second line contains the list of \(N\) integers.
Output Specification
Print one integer: the number of distinct integers in the list.
Sample Input
6
0 2 3 2 2 0
Sample Output
3
Comments
https://stroj.ca/src/183