Chinchirorin

AtCoder
IDabc203_a
Time2000ms
Memory256MB
Difficulty
Takahashi threw three dice, and they showed three numbers $a$, $b$, and $c$. If there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$. ## Constraints * $1 \leq a,b,c \leq 6$ * All of $a$, $b$, and $c$ are integers. ## Input Input is given from Standard Input in the following format: $a$ $b$ $c$ [samples]
Samples
Input #1
2 5 2
Output #1
5

The first and third dice both showed $2$, so we should print the number on the remaining dice, which is $5$.
Input #2
4 5 6
Output #2
0

Any two numbers are different, so we should print $0$.
Input #3
1 1 1
Output #3
1

Any two numbers are the same. Whichever two dice we choose, the number on the remaining dice will be $1$.
API Response (JSON)
{
  "problem": {
    "name": "Chinchirorin",
    "description": {
      "content": "Takahashi threw three dice, and they showed three numbers $a$, $b$, and $c$. If there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc203_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi threw three dice, and they showed three numbers $a$, $b$, and $c$.\nIf there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$.\n\n## Constraints\n\n*...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments