不一样的数字


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 4M

Author:
Problem type
Allowed languages
C++

不一样的数字

a, b, c。其中有两个是相等的,第三个与另外两个不同。 找出那个只出现一次的数字。

输入 第一行包含一个整数 \(t\) (\(1 \le t \le 270\)) 测试用例的数量。 接下来的 \(t\) 行,每行包含三个数字
a, b, c (\(0 \le a,b,c \le 9\))。其中有两个数字相等,第三个不同。

输出 对于每个测试用例,输出只出现一次的数字。

输入
10
1 2 2
4 3 4
5 5 6
7 8 8
9 0 9
3 6 3
2 8 2
5 7 7
7 7 5
5 7 5
输出
1
3
6
7
0
6
8
5
5
7

Comments

There are no comments at the moment.