Five Integers

AtCoder
IDabc268_a
Time2000ms
Memory256MB
Difficulty
Print how many distinct integers there are in given five integers $A, B, C, D$, and $E$. ## Constraints * $0 \leq A, B, C, D, E \leq 100$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ $C$ $D$ $E$ [samples]
Samples
Input #1
31 9 24 31 24
Output #1
3

In the given five integers $31, 9, 24, 31$, and $24$, there are three distinct integers $9, 24$, and $31$. Thus, $3$ should be printed.
Input #2
0 0 0 0 0
Output #2
1
API Response (JSON)
{
  "problem": {
    "name": "Five Integers",
    "description": {
      "content": "Print how many distinct integers there are in given five integers $A, B, C, D$, and $E$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc268_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Print how many distinct integers there are in given five integers $A, B, C, D$, and $E$.\n\n## Constraints\n\n*   $0 \\leq A, B, C, D, E \\leq 100$\n*   All values in input are integers.\n\n## Input\n\nInput is ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments