You are viewing a single comment's thread. Return to all comments →
Probably a bit of longer path:
if __name__ == '__main__': n = int(input()) arr = map(int, input().split()) stored_list = list(arr) stored_list.sort(reverse=True) counter = 1 for i in stored_list: if stored_list[counter]<i: print(stored_list[counter]) break else: counter+=1
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 →
Probably a bit of longer path: