AtCoder Beginner Contest 203(Sponsored by Panasonic)
翻译中…
Problem Statement
翻译中…
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
翻译中…
Output
翻译中…
If there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$.
翻译中…
样例
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$.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。