You are viewing a single comment's thread. Return to all comments →
@tao_zhang, here it is for many duplicated max values -
n = int(input()) arr = list(map(int, input().split())) zes = max(arr) i=0 while(i<n): if zes ==max(arr): arr.remove(max(arr)) i+=1 print(max(arr))
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 →
@tao_zhang, here it is for many duplicated max values -