You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) arr = list(map(int, input().split())) arr.sort()
c=0 for i in range(0,n): if arr[i]==arr[n-1]: c=c+1 for i in range(0,c): arr.remove(arr[n-i-1]) print (arr[n-1-c])
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) arr = list(map(int, input().split())) arr.sort()