Find the Runner-Up Score!

  • + 0 comments

    if name == 'main': n = int(input()) arr = list(set(map(int, input().split()))) first=second=float('-inf') for i in arr: if i>first: second=first first=i elif i>second: second=i print(second)