You are viewing a single comment's thread. Return to all comments →
Failed in Scenario 0
k = int(input()) klist = list(map(int, input().split()))
lenlist = int(len(klist)/2)
set1 = set([x for x in klist[:lenlist]]) set2 = set([x for x in klist[lenlist+1:]])
captainroom = (set1 ^ set2)
print(list(captainroom)[0])
print(captainroom[0])
Seems like cookies are disabled on this browser, please enable them to open this website
The Captain's Room
You are viewing a single comment's thread. Return to all comments →
Failed in Scenario 0
k = int(input()) klist = list(map(int, input().split()))
lenlist = int(len(klist)/2)
set1 = set([x for x in klist[:lenlist]]) set2 = set([x for x in klist[lenlist+1:]])
captainroom = (set1 ^ set2)
print(list(captainroom)[0])
print(captainroom[0])