You are viewing a single comment's thread. Return to all comments →
idk why it didn't work (only passed 1 scenario) but:
num = input() roomlist = input() rlit = roomlist.split() rlit_int = list(map(int, rlit))
while len(rlit_int) > 1: x = rlit_int[0] while x in rlit_int: rlit_int.remove(x)
print(rlit_int[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 →
idk why it didn't work (only passed 1 scenario) but:
num = input() roomlist = input() rlit = roomlist.split() rlit_int = list(map(int, rlit))
while len(rlit_int) > 1: x = rlit_int[0] while x in rlit_int: rlit_int.remove(x)
print(rlit_int[0])