Find the Runner-Up Score!

Sort by

recency

|

8405 Discussions

|

  • + 0 comments

    if name == 'main': n = int(input()) aarr = map(int, input().split()) arr = sorted(aarr) max,m = arr[-1],-101 for i in arr: if i>m and i

  • + 0 comments
    if __name__ == '__main__':
        n = int(input())
        arr = map(int, input().split())
        s = set(arr)
        print(sorted(s)[-2])
    
  • + 0 comments
    if __name__ == '__main__':
        n = int(input())
        arr = list(map(int, input().split()))
        
    arr.sort(reverse=True)
    print(list(set(arr))[1])
    
  • + 0 comments

    For Python3 Platform

    n = int(input())
    arr = list(map(int, input().split()))
    
    res = max([i for i in arr if i != max(arr)])
    
    print(res)
    
  • + 0 comments
    if __name__ == '__main__':
        n = int(input())
        arr = map(int, input().split())
        print(sorted(list(set(arr)))[-2])