eolymp
bolt
Try our new interface for solving problems
Problems

Different-different

Different-different

Given $n$ integers. Find out how many of them are different. \InputFile The first line contains the number of integers $n~(1 \le n \le 10^6)$. The second line contains $n$ integers, each of which does not exceed $2 \cdot 10^9$ in absolute value. \OutputFile Print the number of different integers among the given ones.
Time limit 3 seconds
Memory limit 256 MiB
Input example #1
1
3
Output example #1
1
Input example #2
5
9 15 22 15 22
Output example #2
3