You are viewing a single comment's thread. Return to all comments →
My code is the following
n = int(input()) arr = set(map(int, input().split())) n_arr = list(arr) n_arr = sorted(n_arr) print(n_arr[-2])
and there are two cases where I get errors, but when I run them from my computer they give me the expected results.
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 →
My code is the following
n = int(input()) arr = set(map(int, input().split())) n_arr = list(arr) n_arr = sorted(n_arr) print(n_arr[-2])
and there are two cases where I get errors, but when I run them from my computer they give me the expected results.