Find the Runner-Up Score!

  • + 1 comment

    I just thought to make the occurences of my most maximum the most minimum .

    
    t=int(input())
    m=list(map(int,input().split(' ')))
    x=max(m)
    ind=list()
    for i in range(0,len(m)):
        if m[i]==x:
            m[i]=-101        
    print(max(m))