You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': n = int(input()) arr = map(int, input().split()) arr = sorted(arr) for i in arr[::-1]: a = arr[::-1][0] if i < a: print(i) break else: a = i
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 →