Find the Runner-Up Score!

  • + 0 comments

    n = int(input()) arr = map(int, input().split())

        arr=list(arr)
    arr.sort()
    a=arr[n-1]
    
    for i in range (1,n):
        if(arr[n-(i+1)]<a):
            print(arr[n-(i+1)])
            break