Find the Runner-Up Score!

  • + 1 comment

    I add set to remove duplicate maximum element

    N=int(input())
    s=list(set(map(int , input().split(' '))))
    s.remove(max(s))
    print(max(s))