#abc203a. A - Chinchirorin
A - Chinchirorin
Score : points
问题描述
Takahashi 投掷了三个骰子,它们显示的数字分别为 、 和 。
如果在 、 和 中有两个相同的数字,则输出剩下的那个数字。否则,输出 。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Takahashi threw three dice, and they showed three numbers , , and .
If there are two same numbers among , , and , print the remaining number. Otherwise, print .
Constraints
- All of , , and are integers.
Input
Input is given from Standard Input in the following format:
Output
If there are two same numbers among , , and , print the remaining number. Otherwise, print .
Sample Input 1
2 5 2
Sample Output 1
5
The first and third dice both showed , so we should print the number on the remaining dice, which is .
Sample Input 2
4 5 6
Sample Output 2
0
Any two numbers are different, so we should print .
Sample Input 3
1 1 1
Sample Output 3
1
Any two numbers are the same. Whichever two dice we choose, the number on the remaining dice will be .
update @ 2024/3/10 09:15:08