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
|
8462 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) arr = map(int, input().split())
print(second_max)
maybe this is very simple answer in this problem yes
if name == 'main': n = int(input()) arr = map(int, input().split()) arr = list(set(arr)) arr.sort() print(arr[-2]) maybe this is very simple answer in this problem yes
so that you know, if it was only
arr = map(int, input().split())it can only be used as a list once, thenarrbecomes an empty listif name == 'main': n = int(input()) arr = list(map(int, input().split())) maximum =arr[0] runnerup = arr[0]