

Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 点
問題文
つの整数 が与えられます。
のうち つは 同じ整数であり、残りの つだけ異なる整数です。
例えば、 の場合、 の つは同じ整数であり、 は つだけ異なる整数です。
つの整数のうち、 つだけ異なる整数を求めてください。
制約
- は整数
- 入力は問題文の条件を満たす
入力
入力は以下の形式で標準入力から与えられる。
出力
のうち、 つだけ異なる整数を出力せよ。
入力例 1Copy
5 7 5
出力例 1Copy
7
問題文の例と同じです。
入力例 2Copy
1 1 7
出力例 2Copy
7
この場合は、 が求める整数です。
入力例 3Copy
-100 100 100
出力例 3Copy
-100
Score : points
Problem Statement
You are given three integers, , and .
Among them, two are the same, but the remaining one is different from the rest.
For example, when , and are the same, but is different.
Find the one that is different from the rest among the given three integers.
Constraints
- , and are integers.
- The input satisfies the condition in the statement.
Input
Input is given from Standard Input in the following format:
Output
Among , and , print the integer that is different from the rest.
Sample Input 1Copy
5 7 5
Sample Output 1Copy
7
This is the same case as the one in the statement.
Sample Input 2Copy
1 1 7
Sample Output 2Copy
7
In this case, is the one we seek.
Sample Input 3Copy
-100 100 100
Sample Output 3Copy
-100