gacha

AtCoder
IDabc164_c
Time2000ms
Memory256MB
Difficulty
You drew lottery $N$ times. In the $i$\-th draw, you got an item of the kind represented by a string $S_i$. How many kinds of items did you get? ## Constraints * $1 \leq N \leq 2\times 10^5$ * $S_i$ consists of lowercase English letters and has a length between $1$ and $10$ (inclusive). ## Input Input is given from Standard Input in the following format: $N$ $S_1$ $:$ $S_N$ [samples]
Samples
Input #1
3
apple
orange
apple
Output #1
2

You got two kinds of items: `apple` and `orange`.
Input #2
5
grape
grape
grape
grape
grape
Output #2
1
Input #3
4
aaaa
a
aaa
aa
Output #3
4
API Response (JSON)
{
  "problem": {
    "name": "gacha",
    "description": {
      "content": "You drew lottery $N$ times. In the $i$\\-th draw, you got an item of the kind represented by a string $S_i$. How many kinds of items did you get?",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc164_c"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You drew lottery $N$ times. In the $i$\\-th draw, you got an item of the kind represented by a string $S_i$.\nHow many kinds of items did you get?\n\n## Constraints\n\n*   $1 \\leq N \\leq 2\\times 10^5$\n*   $...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments