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
|
7772 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) arr = list(map(int, input().split())) arr1 = sorted(set(arr)) print(arr1[-2])
if name == 'main': n = int(input()) arr = map(int, input().split()) print(sorted(set(arr), reverse=True)[1])
if name == 'main': n = int(input()) lst=input()
score=[] new= lst.split() for i in new: score.append(int(i))
score.sort(reverse=True) for i in score: if i!= score[0]: print(i) break
if name == 'main': n = int(input()) arr = map(int, input().split())
max_num = float('-inf') second_max = float('-inf') for i in arr: if i > max_num: second_max = max_num max_num = i
print(second_max)
if name == 'main': n = int(input()) arr = list(map(int, input().split())) # Convert map object to list