You are viewing a single comment's thread. Return to all comments →
I did a similar thing:
input() print(sorted({int(x) for x in input().split()}, reverse=True)[1])
edit (With one less call, don't reverse sort):
sorted({int(x) for x in input().split()})[-2]
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
I did a similar thing:
edit (With one less call, don't reverse sort):