#D. A - Chinchirorin

    传统题 1000ms 256MiB

A - Chinchirorin

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Chinchirorin

Score : $100$ points

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:

aa bb cc

Output

If there are two same numbers among $a$, $b$, and $c$, print the remaining number. Otherwise, print $0$.


2 5 2
5

The first and third dice both showed $2$, so we should print the number on the remaining dice, which is $5$.


4 5 6
0

Any two numbers are different, so we should print $0$.


1 1 1
1

Any two numbers are the same. Whichever two dice we choose, the number on the remaining dice will be $1$.

2025春季ATC码力训练基础营第十二次比赛

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-6-14 13:00
结束于
2025-6-14 14:30
持续时间
1.5 小时
主持人
参赛人数
4