#abc203a. A - Chinchirorin

A - Chinchirorin

Score : 100100 points

问题描述

Takahashi 投掷了三个骰子,它们显示的数字分别为 aabbcc

如果在 aabbcc 中有两个相同的数字,则输出剩下的那个数字。否则,输出 00

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Takahashi threw three dice, and they showed three numbers aa, bb, and cc.

If there are two same numbers among aa, bb, and cc, print the remaining number. Otherwise, print 00.

Constraints

  • 1a,b,c61 \leq a,b,c \leq 6
  • All of aa, bb, and cc are integers.

Input

Input is given from Standard Input in the following format:

aa bb cc

Output

If there are two same numbers among aa, bb, and cc, print the remaining number. Otherwise, print 00.

Sample Input 1

2 5 2

Sample Output 1

5

The first and third dice both showed 22, so we should print the number on the remaining dice, which is 55.

Sample Input 2

4 5 6

Sample Output 2

0

Any two numbers are different, so we should print 00.

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 11.

update @ 2024/3/10 09:15:08