From 9fe04d95fe13828b994a62f99f79fa0f9c1af137 Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Sun, 2 Jul 2023 22:37:14 +0200 Subject: [PATCH] Odd Man Out --- oddmanout.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 oddmanout.py diff --git a/oddmanout.py b/oddmanout.py new file mode 100644 index 0000000..f8d9172 --- /dev/null +++ b/oddmanout.py @@ -0,0 +1,11 @@ +def test_case(i): + _ = int(input()) + cs = list(map(int, input().split())) + for c in cs: + if cs.count(c) == 1: + print(f"Case #{i+1}: {c}") + return + +n = int(input()) +for i in range(n): + test_case(i) \ No newline at end of file