Odd Man Out
This commit is contained in:
11
oddmanout.py
Normal file
11
oddmanout.py
Normal 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)
|
||||
Reference in New Issue
Block a user