Find the Runner-Up Score!

  • + 3 comments
    n = int(input())
    arr = map(int, input().split())
    x=list(set(arr))
    x.sort()
    x.pop()
    print(max(x))