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
|
8337 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) arr = map(int, input().split()) l = list(arr) from functools import reduce def compare(x, y): if x>y: return x else: return y greatest = reduce(compare, l) for i in range(0, l.count(greatest)): l.remove(greatest)
if name == 'main': n = int(input()) arr =list(map(int, input().split())) scores=list(set(arr)) scores.sort() print(scores[-2])
if name == 'main': n = int(input()) arr = map(int, input().split())
n = int(input()) arr = list(set(map(int, input().split()))) arr.sort() print(arr[-2])