Find the Runner-Up Score!

  • + 0 comments

    if name == 'main': n = int(input()) arr = map(int, input().split()) a = list(arr) a.sort() while a[-1] == a[-2]: a.pop() print(a[-2])