You are viewing a single comment's thread. Return to all comments →
dn,arr=(input() for _ in range(2)) nums = map(int, arr.split()) a=sorted(list(set(nums))) if(len(a)==1): print(a[0]) else: print(a[-2])
to avoid [1, 1, 1] or just [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 →
to avoid [1, 1, 1] or just [1]