You are viewing a single comment's thread. Return to all comments →
K, liste = int(input()), list(map(int, input().split())) rooms = set(liste) listeAdj = liste.copy() for elmt in rooms: listeAdj.remove(elmt) print(list(rooms.symmetric_difference(set(listeAdj)))[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 →