You are viewing a single comment's thread. Return to all comments →
This feels quick
if __name__ == '__main__': n = int(input()) arr = list(map(int, input().split())) arr.sort() arr = list(set(arr)) print(arr[len(arr)-2])
Seems like cookies are disabled on this browser, please enable them to open this website
Set .symmetric_difference() Operation
You are viewing a single comment's thread. Return to all comments →
This feels quick