newton/solutions/odd_one_out.py

9 lines
189 B
Python

t = int(input())
for _ in range(t):
digits = sorted([int(x) for x in input().split(' ')])
if min(digits) == digits[1]:
print(digits[2])
else:
print(digits[0])