You are viewing a single comment's thread. Return to all comments →
n = int(input()) scoreList = list(map(int,input().split(" "))) scoreList.sort() print(scoreList) if (n>=1 and n<=10): if n <= 3: if n == 1: print(scoreList[0]) elif n == 2: print(scoreList[0]) if scoreList[0] > scoreList[1] else print("Same Score") else: print(scoreList[0]) if (scoreList[0] == scoreList[1]) or (scoreList[1] == scoreList[2]) else print(scoreList[1]) else: for i in range(len(scoreList)): if scoreList[n-i-1] != scoreList[n-i-2]: print(scoreList[n-i-2]) break else: pass else: pass
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →