Find the Runner-Up Score!

Sort by

recency

|

8398 Discussions

|

  • + 0 comments

    if name == 'main': n = int(input()) arr = map(int, input().split()) print(sorted(set(arr),reverse=True)[1])

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

    if name == 'main': n = int(input()) arr = map(int, input().split()) result = sorted(set(arr))[-2] print(result) is this correct

  • + 0 comments

    Why i can't submit my code?

  • + 0 comments
    if __name__ == '__main__':
        n = i``nt(input(`))
        ``arr = list(map(int, input().split()))
    		
       output = sorted(set(arr), reverse = True)[1]
       print(output)