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
|
8366 Discussions
|
Please Login in order to post a comment
print((sorted(list(set(arr))))[-2])
if name == 'main': n = int(input()) arr = map(int, input().split())
Probably a bit of longer path: