#P110. 不同的年龄
不同的年龄
题目描述
芯芯想知道她的朋友中一共有多少种不同的年龄。给定 ( N(1 ≤ N ≤ 100) ) 位朋友的年龄(年龄范围为 1 到 100),统计并输出不同年龄的数量。
输入数据 1
10
3 3 3 9 9 10 10 12 12 12
输出数据 1
4
芯芯想知道她的朋友中一共有多少种不同的年龄。给定 ( N(1 ≤ N ≤ 100) ) 位朋友的年龄(年龄范围为 1 到 100),统计并输出不同年龄的数量。
10
3 3 3 9 9 10 10 12 12 12
4
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.