C - gacha Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 300300

問題文

くじ引きを NN 回行い、ii 回目には種類が文字列 SiS_i で表される景品を手に入れました。

何種類の景品を手に入れましたか?

制約

  • 1N2×1051 \leq N \leq 2\times 10^5
  • SiS_i は英小文字のみからなり、長さは 11 以上 1010 以下

入力

入力は以下の形式で標準入力から与えられる。

NN
S1S_1
::
SNS_N

出力

何種類の景品を手に入れたか出力せよ。


入力例 1Copy

Copy
3
apple
orange
apple

出力例 1Copy

Copy
2

appleorange22 種類の景品を手に入れました。


入力例 2Copy

Copy
5
grape
grape
grape
grape
grape

出力例 2Copy

Copy
1

入力例 3Copy

Copy
4
aaaa
a
aaa
aa

出力例 3Copy

Copy
4

Score : 300300 points

Problem Statement

You drew lottery NN times. In the ii-th draw, you got an item of the kind represented by a string SiS_i.

How many kinds of items did you get?

Constraints

  • 1N2×1051 \leq N \leq 2\times 10^5
  • SiS_i consists of lowercase English letters and has a length between 11 and 1010 (inclusive).

Input

Input is given from Standard Input in the following format:

NN
S1S_1
::
SNS_N

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


2025-04-26 (Sat)
10:00:06 +00:00