We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Find the Runner-Up Score!
Find the Runner-Up Score!
Sort by
recency
|
8330 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) arr = list(set(map(int, input().split()))) first=second=float('-inf') for i in arr: if i>first: second=first first=i elif i>second: second=i print(second)
if name == 'main': n = int(input()) arr = list(set(map(int, input().split()))) first=second=float('-inf') for i in arr: if i>first: second=first first=i elif i>second: second=i print(second)
if name == 'main': n = int(input()) arr = list(map(int, input().split()))
if name == 'main': n = int(input()) arr = list(map(int, input().split())) secound_highest = max(arr)-1 print(secound_highest)