C - gacha
Editorial
/


Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 点
問題文
くじ引きを 回行い、 回目には種類が文字列 で表される景品を手に入れました。
何種類の景品を手に入れましたか?
制約
- は英小文字のみからなり、長さは 以上 以下
入力
入力は以下の形式で標準入力から与えられる。
出力
何種類の景品を手に入れたか出力せよ。
入力例 1Copy
Copy
3 apple orange apple
出力例 1Copy
Copy
2
apple
と orange
の 種類の景品を手に入れました。
入力例 2Copy
Copy
5 grape grape grape grape grape
出力例 2Copy
Copy
1
入力例 3Copy
Copy
4 aaaa a aaa aa
出力例 3Copy
Copy
4
Score : points
Problem Statement
You drew lottery times. In the -th draw, you got an item of the kind represented by a string .
How many kinds of items did you get?
Constraints
- consists of lowercase English letters and has a length between and (inclusive).
Input
Input is given from Standard Input in the following format:
Output
Print the number of kinds of items you got.
Sample Input 1Copy
Copy
3 apple orange apple
Sample Output 1Copy
Copy
2
You got two kinds of items: apple
and orange
.
Sample Input 2Copy
Copy
5 grape grape grape grape grape
Sample Output 2Copy
Copy
1
Sample Input 3Copy
Copy
4 aaaa a aaa aa
Sample Output 3Copy
Copy
4