You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': n = int(input()) arr = map(int, input().split()) arr = set(arr) max_score = max(arr) runner_up_score = -101 for score in arr: if score != max_score: runner_up_score = max(runner_up_score, score) print(runner_up_score)
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 →