407064: GYM102697 035 Distinct Numbers

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

035. Distinct Numberstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You have a list of numbers. You want to figure out how many distinct (different) numbers are in the list. For example, the list [1, 2, 3, 4, 4, 5, 5] has 5 distinct numbers.

Input

The first line of input contains a single positive integer $$$n$$$: the number of items in the list. The next line contains $$$n$$$ space-separated integers: the list.

Output

Output a single positive integer $$$d$$$: the number of distinct numbers in the list.

ExamplesInput
5
2 2 3 5 6
Output
4
Input
4
1 2 3 4
Output
4

加入题单

上一题 下一题 算法标签: