Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Language
中文
ئۇيغۇرچە
English
فارسی
ไทย
한국어
Problem2673--n个数字中,共有多少个互不相同的数字?
2673: n个数字中,共有多少个互不相同的数字?
[Creator :
]
Time Limit :
1.000
sec
Memory Limit :
128 MB
Submit
Solved: 24
Submit Num: 50
Statistics
Description
这道题是第2426题Five Integers的扩展。
给定一个整数n(n<=1000),和n个不大于1000的非负整数。
请确定这n个数中,有多少个互不相同的数字?
例如:
8
1 3 3 3 2 9 8 8
输出
5
Sample Input
Copy
10 9 8 7 6 1000 9 8 7 6 1000
Sample Output
Copy
5
Source/Category
一维数组
桶