Find the Runner-Up Score!

  • + 2 comments

    Another method can be :-

    n=int(raw_input())

    a=map(int,raw_input().split())

    a.sort()

    w=a.index(max(a))

    print a[w-1]