Odd Man Out

This commit is contained in:
2023-07-02 22:37:14 +02:00
parent 683c8bf233
commit 9fe04d95fe

11
oddmanout.py Normal file
View File

@@ -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)