diff --git a/solutions/odd_one_out.py b/solutions/odd_one_out.py new file mode 100644 index 0000000..638f4b8 --- /dev/null +++ b/solutions/odd_one_out.py @@ -0,0 +1,9 @@ +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])