Find the Runner-Up Score!

  • + 0 comments
    if __name__ == '__main__':
        n = int(input())
        arr = map(int, input().split())
        arr = sorted(arr) 
        for i in arr[::-1]:
            a = arr[::-1][0]
            if i < a:
                print(i)
                break
            else:
                a = i