You are viewing a single comment's thread. Return to all comments →
a=list(arr) a.sort() largest=a[-1] c=0 for i in range(n-1,0,-1): if a[i]==largest: c+=1 print(a[-(c+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 →
a=list(arr) a.sort() largest=a[-1] c=0 for i in range(n-1,0,-1): if a[i]==largest: c+=1 print(a[-(c+1)])