QOJ.ac

QOJ

実行時間制限: 1.0 s メモリ制限: 64 MB 満点: 100

#18089. 健達出奇蛋

統計

「健達出奇蛋」(Kinder Surprise)是一種巧克力蛋,裡面裝有玩具或紀念品。你永遠不知道這次裡面會是什麼!

最近小 Pasha 發現,新系列的「健達出奇蛋」每一顆都包含一個河馬小雕像。總共有 $n$ 種河馬小雕像,而 Pasha 想要收集齊全。

Pasha 想都沒想,就買了 $n$ 顆新系列的「健達出奇蛋」。結果 Pasha 對一件意想不到的事情感到非常失望:有些河馬小雕像竟然是一模一樣的。這才是真正的「驚喜」!

在難過了一陣子後,Pasha 決定找出他還沒收集到的河馬小雕像數量。請幫他解決這個問題。

輸入格式

第一行包含一個整數 $n$ ($2 \le n \le 100$)。

接下來的 $n$ 行描述河馬小雕像,每行一個。第 $i$ 個河馬小雕像的描述是一個長度介於 1 到 20 個字元之間的字串,包含小寫拉丁字母與底線。兩個河馬小雕像若且唯若它們的描述相同時,才視為相同。

保證至少有兩個河馬小雕像是相同的。

輸出格式

輸出一個整數,代表 Pasha 還沒收集到的河馬小雕像數量。

範例

輸入 1

10
hippo_in_tank
lazy_hippo
hippo_vampire
bizarre_hippo
hippo_in_tank
hippo_ninja
hippie_hippo
lazy_hippo
hippo_in_tank
hip_hop_hippo

輸出 1

3

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.