From 87932e77a0ea50e7b7d5b5ea0f146bf2aa7a072c Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sat, 11 Jan 2025 11:45:26 +0000 Subject: [PATCH] solutions: 1915A --- solutions/odd_one_out.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 solutions/odd_one_out.py 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])