Find the Runner-Up Score!

  • + 0 comments
    if __name__ == '__main__':
        n = int(input())
        arr = map(int, input().split())
        sorted_list = sorted(arr)
        unique_score = set(sorted_list)
        unique_score.pop()
        runner_up = max(unique_score)
        print(runner_up)